44 #ifndef vtkSelection_h 45 #define vtkSelection_h 47 #include "vtkCommonDataModelModule.h" 78 unsigned int GetNumberOfNodes()
const;
108 virtual std::string GetNodeNameAtIndex(
unsigned int idx)
const;
114 virtual void RemoveNode(
unsigned int idx);
122 virtual void RemoveAllNodes();
188 virtual void Dump(ostream& os);
212 template <
typename MapType>
226 vtkInternals* Internals;
230 template <
typename MapType>
235 for (
unsigned int cc = 0; cc < num_nodes; ++cc)
238 values[cc] = iter != values_map.end() ? iter->second :
nullptr;
240 return this->
Evaluate(&values[0], num_nodes);
A node in a selection tree.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkDataObject * GetData(vtkInformation *info)
Retrieve an instance of this class from an information object.
static vtkDataObject * New()
virtual std::string GetNodeNameAtIndex(unsigned int idx) const
Returns the name for a node at the given index.
vtkTypeUInt32 vtkMTimeType
unsigned int GetNumberOfNodes() const
Returns the number of nodes in this selection.
data object that represents a "selection" in VTK.
virtual void Initialize()
Restore data object to initial state,.
Hold a reference to a vtkObjectBase instance.
int GetDataObjectType() override
Returns VTK_SELECTION enumeration value.
a simple class to control print indentation
dynamic, self-adjusting array of signed char
vtkSmartPointer< vtkSignedCharArray > Evaluate(vtkSignedCharArray *const *values, unsigned int num_values) const
Evaluates the expression for each element in the values.
vtkMTimeType GetMTime() override
Data objects are composite objects and need to check each part for MTime.
general representation of visualization data
virtual void DeepCopy(vtkDataObject *src)
Shallow and Deep copy.
virtual void ShallowCopy(vtkDataObject *src)
Shallow and Deep copy.