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>
239 const unsigned int num_nodes = this->GetNumberOfNodes();
241 for (
unsigned int cc = 0; cc < num_nodes; ++cc)
243 auto iter = values_map.find(this->GetNodeNameAtIndex(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()
vtkTypeUInt32 vtkMTimeType
data object that represents a "selection" in VTK.
virtual void Initialize()
Restore data object to initial state,.
Hold a reference to a vtkObjectBase instance.
vtkSmartPointer< vtkSignedCharArray > Evaluate(vtkSignedCharArray *const *values, unsigned int num_values) const
Evaluates the expression for each element in the values.
int GetDataObjectType() override
Returns VTK_SELECTION enumeration value.
a simple class to control print indentation
dynamic, self-adjusting array of signed char
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.