50 #ifndef vtkSelection_h 51 #define vtkSelection_h 53 #include "vtkCommonDataModelModule.h" 84 unsigned int GetNumberOfNodes()
const;
114 virtual std::string GetNodeNameAtIndex(
unsigned int idx)
const;
120 virtual void RemoveNode(
unsigned int idx);
128 virtual void RemoveAllNodes();
194 virtual void Dump(ostream& os);
218 template <
typename MapType>
232 vtkInternals* Internals;
236 template <
typename MapType>
241 for (
unsigned int cc = 0; cc < num_nodes; ++cc)
244 values[cc] = iter != values_map.end() ? iter->second :
nullptr;
246 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.