45 #ifndef vtkSelectionSource_h
46 #define vtkSelectionSource_h
48 #include "vtkFiltersSourcesModule.h"
68 void SetNumberOfNodes(
unsigned int numberOfNodes);
69 unsigned int GetNumberOfNodes() {
return static_cast<unsigned int>(this->NodesInfo.size()); }
76 void RemoveNode(
unsigned int idx);
77 void RemoveNode(
const char*
name);
83 virtual void RemoveAllNodes();
98 vtkSetStdStringFromCharMacro(Expression);
99 vtkGetCharFromStdStringMacro(Expression);
121 vtkSetClampMacro(FieldTypeOption,
int, FIELD_TYPE, ELEMENT_TYPE);
124 vtkGetMacro(FieldTypeOption,
int);
136 vtkGetMacro(FieldType,
int);
149 vtkGetMacro(ElementType,
int);
160 vtkGetMacro(ProcessID,
int);
177 void SetNodeName(
unsigned int nodeId,
const char*
name);
179 const char* GetNodeName(
unsigned int nodeId);
191 void AddStringID(
unsigned int nodeId,
vtkIdType piece,
const char*
id);
199 void AddLocation(
unsigned int nodeId,
double x,
double y,
double z);
207 void AddThreshold(
unsigned int nodeId,
double min,
double max);
215 void SetFrustum(
unsigned int nodeId,
double*
vertices);
223 void AddBlock(
unsigned int nodeId,
vtkIdType block);
232 void AddBlockSelector(
unsigned int nodeId,
const char* block);
234 void RemoveAllBlockSelectors(
unsigned int nodeId);
242 void RemoveAllIDs(
unsigned int nodeId);
244 void RemoveAllStringIDs(
unsigned int nodeId);
252 void RemoveAllThresholds(
unsigned int nodeId);
260 void RemoveAllLocations(
unsigned int nodeId);
268 void RemoveAllBlocks(
unsigned int nodeId);
280 void SetContentType(
unsigned int nodeId,
int type);
284 int GetContentType(
unsigned int nodeId);
295 void SetContainingCells(
unsigned int nodeId,
vtkTypeBool containingCells);
298 this->SetContainingCells(0, containingCells);
300 vtkTypeBool GetContainingCells(
unsigned int nodeId);
310 void SetNumberOfLayers(
unsigned int nodeId,
int numberOfLayers);
314 int GetNumberOfLayers(
unsigned int nodeId);
324 void SetInverse(
unsigned int nodeId,
vtkTypeBool inverse);
335 void SetArrayName(
unsigned int nodeId,
const char*
name);
337 const char* GetArrayName(
unsigned int nodeId);
347 void SetArrayComponent(
unsigned int nodeId,
int component);
349 int GetArrayComponent(
unsigned int nodeId);
360 void SetCompositeIndex(
unsigned int nodeId,
int index);
362 int GetCompositeIndex(
unsigned int nodeId);
374 void SetHierarchicalLevel(
unsigned int nodeId,
int level);
376 int GetHierarchicalLevel(
unsigned int nodeId);
378 void SetHierarchicalIndex(
unsigned int nodeId,
int index);
380 int GetHierarchicalIndex(
unsigned int nodeId);
390 void SetAssemblyName(
unsigned int nodeId,
const char*
name);
392 const char* GetAssemblyName(
unsigned int nodeId);
394 void AddSelector(
unsigned int nodeId,
const char* selector);
396 void RemoveAllSelectors(
unsigned int nodeId);
404 void SetQueryString(
unsigned int nodeId,
const char* queryString);
406 const char* GetQueryString(
unsigned int nodeId);
424 struct NodeInformation;
425 std::vector<std::shared_ptr<NodeInformation>>
NodesInfo;
void AddStringID(vtkIdType piece, const char *id)
Add a (piece, id) to the selection set.
void SetArrayComponent(int component)
Set/Get the component number for the array specified by ArrayName.
unsigned int GetNumberOfNodes()
Set/Get the number of nodes that will be created for the generated selection.
void RemoveAllStringIDs()
Removes all IDs.
void SetNumberOfLayers(int numberOfLayers)
Set/Get the number of layers to extract connected to the selected elements.
void AddLocation(double x, double y, double z)
Add a point in world space to probe at.
const char * GetArrayName()
Get/Set the name used for the SelectionList in the generated vtkSelectionNode.
The selection data provided is cell-data.
int GetNumberOfLayersMaxValue()
Set/Get the number of layers to extract connected to the selected elements.
int GetHierarchicalLevel()
Set/Get the Hierarchical/HierarchicalIndex.
const char * GetAssemblyName()
For selector-based selection qualification.
void SetQueryString(const char *query)
Set/Get the query expression string.
std::vector< std::shared_ptr< NodeInformation > > NodesInfo
int GetCompositeIndex()
Set/Get the CompositeIndex.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetInverse(vtkTypeBool inverse)
Determines whether the selection describes what to include or exclude.
void AddSelector(const char *selector)
For selector-based selection qualification.
void RemoveAllIDs()
Removes all IDs.
const char * GetQueryString()
Set/Get the query expression string.
std::pair< boost::graph_traits< vtkGraph * >::vertex_iterator, boost::graph_traits< vtkGraph * >::vertex_iterator > vertices(vtkGraph *g)
void RemoveAllSelectors()
For selector-based selection qualification.
void SetContainingCells(vtkTypeBool containingCells)
When extracting by points, extract the cells that contain the passing points.
int GetNumberOfLayers()
Set/Get the number of layers to extract connected to the selected elements.
void SetArrayName(const char *name)
Get/Set the name used for the SelectionList in the generated vtkSelectionNode.
void RemoveAllBlocks()
Remove all blocks added with AddBlock.
FieldTypeOptions
Set/Get FieldTypeOption which is used to specify the selection field type for the selection...
void RemoveAllThresholds()
Remove all thresholds added with AddThreshold.
void SetCompositeIndex(int compositeIndex)
Set/Get the CompositeIndex.
virtual void SetFieldTypeOptionToFieldType()
Set/Get FieldTypeOption which is used to specify the selection field type for the selection...
static vtkSelectionAlgorithm * New()
a simple class to control print indentation
int GetHierarchicalIndex()
Set/Get the Hierarchical/HierarchicalIndex.
void SetHierarchicalIndex(int index)
Set/Get the Hierarchical/HierarchicalIndex.
virtual void SetFieldTypeOptionToElementType()
Set/Get FieldTypeOption which is used to specify the selection field type for the selection...
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
void SetHierarchicalLevel(int level)
Set/Get the Hierarchical/HierarchicalIndex.
Generate selection from given set of ids.
int GetArrayComponent()
Set/Get the component number for the array specified by ArrayName.
Superclass for algorithms that produce only Selection as output.
vtkTypeBool GetContainingCells()
When extracting by points, extract the cells that contain the passing points.
void SetFrustum(double *vertices)
Set a frustum to choose within.
int GetNumberOfLayersMinValue()
Set/Get the number of layers to extract connected to the selected elements.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
void RemoveAllLocations()
Remove all locations added with AddLocation.
void AddID(vtkIdType piece, vtkIdType id)
Add a (piece, id) to the selection set.
void SetNodeName(const char *name)
Set/Get the node name.
The selection data provided is table row-data.
void AddBlock(vtkIdType blockno)
Add the flat-index/composite index for a block.
const char * GetNodeName()
Set/Get the node name.
void SetAssemblyName(const char *name)
For selector-based selection qualification.
int GetContentType()
Set/Get the content type.
int GetContentTypeMinValue()
Set/Get the content type.
vtkTypeBool GetInverse()
Determines whether the selection describes what to include or exclude.
void AddBlockSelector(const char *selector)
Add/Remove block-selectors to make selections with vtkSelectionNode::BLOCK_SELECTORS as the content-t...
int GetContentTypeMaxValue()
Set/Get the content type.
void SetContentType(int contentType)
Set/Get the content type.
void AddThreshold(double min, double max)
Add a value range to threshold within.
void RemoveAllBlockSelectors()
Add/Remove block-selectors to make selections with vtkSelectionNode::BLOCK_SELECTORS as the content-t...