Go to the documentation of this file.
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);
virtual void Initialize()
Restore data object to initial state,.
A node in a selection tree. Used to store selection results.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int GetDataObjectType() override
Returns VTK_SELECTION enumeration value.
Hold a reference to a vtkObjectBase instance.
dynamic, self-adjusting array of signed char
data object that represents a "selection" in VTK.
virtual void DeepCopy(vtkDataObject *src)
unsigned int GetNumberOfNodes() const
Returns the number of nodes in this selection.
vtkMTimeType GetMTime() override
Data objects are composite objects and need to check each part for MTime.
a simple class to control print indentation
vtkSmartPointer< vtkSignedCharArray > Evaluate(vtkSignedCharArray *const *values, unsigned int num_values) const
Evaluates the expression for each element in the values.
general representation of visualization data
virtual void ShallowCopy(vtkDataObject *src)
Shallow and Deep copy.
static vtkDataObject * GetData(vtkInformation *info)
Retrieve an instance of this class from an information object.
static vtkDataObject * New()
vtkTypeUInt32 vtkMTimeType
virtual std::string GetNodeNameAtIndex(unsigned int idx) const
Returns the name for a node at the given index.