Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Christian Butz
VTK
Commits
189fd30f
Commit
189fd30f
authored
Aug 31, 2005
by
Sebastien Barre
Browse files
ENH: remove deprecated methods (thanks to Mathieuuuuu for pointing some of them)
parent
2f710b0a
Changes
7
Hide whitespace changes
Inline
Side-by-side
Examples/GUI/Win32/SampleMFC/SampleView.cpp
View file @
189fd30f
...
...
@@ -21,10 +21,10 @@ static char THIS_FILE[] = __FILE__;
IMPLEMENT_DYNCREATE
(
CSampleView
,
vtkMFCRenderView
)
BEGIN_MESSAGE_MAP
(
CSampleView
,
vtkMFCRenderView
)
//{{AFX_MSG_MAP(CSampleView)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG_MAP
//{{AFX_MSG_MAP(CSampleView)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG_MAP
END_MESSAGE_MAP
()
/////////////////////////////////////////////////////////////////////////////
...
...
@@ -32,7 +32,7 @@ END_MESSAGE_MAP()
CSampleView
::
CSampleView
()
{
// TODO: add construction code here
// TODO: add construction code here
}
...
...
@@ -47,18 +47,18 @@ CSampleView::~CSampleView()
#ifdef _DEBUG
void
CSampleView
::
AssertValid
()
const
{
CView
::
AssertValid
();
CView
::
AssertValid
();
}
void
CSampleView
::
Dump
(
CDumpContext
&
dc
)
const
{
CView
::
Dump
(
dc
);
CView
::
Dump
(
dc
);
}
CSampleDoc
*
CSampleView
::
GetDocument
()
// non-debug version is inline
{
ASSERT
(
m_pDocument
->
IsKindOf
(
RUNTIME_CLASS
(
CSampleDoc
)));
return
(
CSampleDoc
*
)
m_pDocument
;
ASSERT
(
m_pDocument
->
IsKindOf
(
RUNTIME_CLASS
(
CSampleDoc
)));
return
(
CSampleDoc
*
)
m_pDocument
;
}
#endif //_DEBUG
...
...
@@ -67,19 +67,19 @@ CSampleDoc* CSampleView::GetDocument() // non-debug version is inline
void
CSampleView
::
OnUpdate
(
CView
*
pSender
,
LPARAM
lHint
,
CObject
*
pHint
)
{
// TODO: Add your specialized code here and/or call the base class
// TODO: Add your specialized code here and/or call the base class
vtkPropCollection
*
propc
;
vtkProp
*
prop
;
// TODO: Add your specialized code here and/or call the base class
// first remove any old actors
this
->
Renderer
->
GetProps
()
->
RemoveAllItems
();
propc
=
this
->
GetDocument
()
->
GetProps
();
this
->
Renderer
->
Get
View
Props
()
->
RemoveAllItems
();
propc
=
this
->
GetDocument
()
->
Get
View
Props
();
propc
->
InitTraversal
();
while
(
prop
=
propc
->
GetNextProp
())
{
this
->
Renderer
->
AddProp
(
prop
);
this
->
Renderer
->
Add
View
Prop
(
prop
);
this
->
Renderer
->
ResetCamera
();
}
this
->
vtkMFCRenderView
::
OnUpdate
(
pSender
,
lHint
,
pHint
);
this
->
vtkMFCRenderView
::
OnUpdate
(
pSender
,
lHint
,
pHint
);
}
Examples/GUI/Win32/SampleMFC/vtkMFCDocument.h
View file @
189fd30f
...
...
@@ -40,7 +40,7 @@ public:
// Operations
public:
vtkPropCollection
*
GetProps
()
{
return
this
->
Props
;};
vtkPropCollection
*
Get
View
Props
()
{
return
this
->
Props
;};
// Overrides
// ClassWizard generated virtual function overrides
...
...
Examples/GUI/Win32/vtkBorland/Package/vtkBorlandRenderWindow.cpp
View file @
189fd30f
...
...
@@ -61,7 +61,7 @@ __fastcall TvtkBorlandRenderWindow::~TvtkBorlandRenderWindow()
}
if
(
FRenderer
)
{
FRenderer
->
GetProps
()
->
RemoveAllItems
();
FRenderer
->
Get
View
Props
()
->
RemoveAllItems
();
FRenderWindow
->
RemoveRenderer
(
FRenderer
);
FRenderer
->
Delete
();
FRenderer
=
0
;
...
...
Examples/GUI/Win32/vtkBorland/ProjectDemo/Form_Test.cpp
View file @
189fd30f
...
...
@@ -52,7 +52,7 @@ void __fastcall TVTK_Form::FormDestroy(TObject *Sender)
vtkRenderer
*
ren1
=
vtkWindow1
->
GetRenderer
();
vtkRenderWindow
*
renwin1
=
vtkWindow1
->
GetRenderWindow
();
vtkPropCollection
*
collection
=
ren1
->
GetProps
();
vtkPropCollection
*
collection
=
ren1
->
Get
View
Props
();
if
(
collection
)
{
collection
->
InitTraversal
();
...
...
@@ -62,7 +62,7 @@ void __fastcall TVTK_Form::FormDestroy(TObject *Sender)
if
(
actor
)
{
actor
->
ReleaseGraphicsResources
(
renwin1
);
ren1
->
RemoveProp
(
actor
);
ren1
->
Remove
View
Prop
(
actor
);
}
}
}
...
...
Examples/VolumeRendering/Tcl/volSimpleLOD.tcl
View file @
189fd30f
...
...
@@ -168,7 +168,7 @@ renWin AddRenderer ren1
#
# Add the LODProp3D to the renderer and set the background
#
ren1 AddProp lod
ren1 Add
View
Prop lod
ren1 SetBackground 0.1 0.2 0.4
#
...
...
VolumeRendering/Testing/Tcl/volTM3DCropRegions.tcl
View file @
189fd30f
...
...
@@ -87,7 +87,7 @@ $culler SetSortingStyleToBackToFront
set valid
[
volumeMapper_0_0 IsRenderSupported volumeProperty
]
if
{
!$valid
}
{
ren1 RemoveAllProps
ren1 RemoveAll
View
Props
vtkTextActor t
t SetInput
"Required Extensions Not Supported"
t SetDisplayPosition 300 150
...
...
VolumeRendering/Testing/Tcl/volTM3DRotateClip.tcl
View file @
189fd30f
...
...
@@ -127,7 +127,7 @@ set valid [volumeMapper IsRenderSupported volumeProperty]
ren1 AddViewProp volume
if
{
!$valid
}
{
ren1 RemoveAllProps
ren1 RemoveAll
View
Props
vtkTextActor t
t SetInput
"Required Extensions Not Supported"
t SetDisplayPosition 128 128
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment