21 #include "vtkRenderingSceneGraphModule.h"
26 VTK_ABI_NAMESPACE_BEGIN
75 virtual std::list<vtkViewNode*>
const&
GetChildren() {
return this->Children; }
136 static const char* operation_type_strings[];
138 virtual void Apply(
int operation,
bool prepass);
183 VTK_ABI_NAMESPACE_END
create and manipulate ordered lists of objects
a simple class to control print indentation
abstract base class for most VTK objects
factory that chooses vtkViewNodes to create
a node within a VTK scene graph
vtkViewNode * GetFirstChildOfType(const char *type)
Find the first child of the desired type.
virtual void SetRenderable(vtkObject *)
Allow explicit setting of the renderable for a view node.
virtual vtkViewNode * CreateViewNode(vtkObject *obj)
Create the correct ViewNode subclass for the passed in object.
virtual void Apply(int operation, bool prepass)
virtual void TraverseAllPasses()
vtkWeakPointer< vtkViewNode > Parent
void AddMissingNodes(vtkCollection *col)
convenience method to add node or nodes if missing from our current list
std::list< vtkViewNode * > Children
virtual void Render(bool)
Makes calls to make self visible.
virtual std::list< vtkViewNode * > const & GetChildren()
Access nodes that this one owns.
virtual vtkViewNode * GetParent()
Access the node that owns this one.
void RemoveUnusedNodes()
Called after PrepareNodes and AddMissingNodes removes any extra leftover nodes.
vtkMTimeType RenderTime
Allows smart caching.
vtkViewNodeFactory * MyFactory
operation_type
internal mechanics of graph traversal and actions
std::map< vtkObject *, vtkViewNode * > Renderables
void AddMissingNode(vtkObject *obj)
convenience method to add node or nodes if missing from our current list
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkViewNode * GetViewNodeFor(vtkObject *)
Returns the view node that corresponding to the provided object Will return NULL if a match is not fo...
void PrepareNodes()
Called first before adding missing nodes.
virtual void Traverse(int operation)
virtual void Build(bool)
Builds myself.
virtual void Invalidate(bool)
Clear any cached data.
virtual void SetMyFactory(vtkViewNodeFactory *)
A factory that creates particular subclasses for different rendering back ends.
vtkViewNode * GetFirstAncestorOfType(const char *type)
Find the first parent/grandparent of the desired type.
virtual void Synchronize(bool)
Ensures that my state agrees with my Renderable's.
virtual void SetParent(vtkViewNode *)
Access the node that owns this one.
vtkTypeUInt32 vtkMTimeType