Go to the documentation of this file.
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);
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.