OGS
|
This filter selects/thresholds elements based on the selected array.
Definition at line 26 of file VtkCompositeElementSelectionFilter.h.
#include <VtkCompositeElementSelectionFilter.h>
Public Member Functions | |
VtkCompositeElementSelectionFilter (vtkAlgorithm *inputAlgorithm) | |
~VtkCompositeElementSelectionFilter () override=default | |
void | init () override |
void | setRange (double min_val, double max_val) |
void | setSelectionArray (const std::string &selection_name, const std::vector< double > &selection=std::vector< double >()) |
void | SetUserVectorProperty (QString name, QList< QVariant > values) override |
Sets a vector user property. This should be implemented by subclasses. | |
Public Member Functions inherited from VtkCompositeFilter | |
VtkCompositeFilter (vtkAlgorithm *inputAlgorithm) | |
Constructor. | |
~VtkCompositeFilter () override | |
Destructor. | |
int | GetInputDataObjectType () const |
int | GetOutputDataObjectType () const |
vtkAlgorithm * | GetOutputAlgorithm () const |
Public Member Functions inherited from VtkAlgorithmProperties | |
VtkAlgorithmProperties (QObject *parent=nullptr) | |
Constructor (sets default values) | |
~VtkAlgorithmProperties () override | |
vtkProperty * | GetProperties () const |
Returns the vtk properties. | |
vtkTexture * | GetTexture () |
Returns a texture (if one has been assigned). | |
void | SetTexture (vtkTexture *t) |
Sets a texture for the VtkVisPipelineItem. | |
vtkLookupTable * | GetLookupTable (const QString &array_name) |
Returns the colour lookup table (if one has been assigned). | |
void | RemoveLookupTable (const QString &array_name) |
Removes the lookup table for the given scalar. | |
void | SetLookUpTable (const QString &array_name, vtkLookupTable *lut) |
Sets a colour lookup table for the given scalar array of the VtkVisPipelineItem. | |
void | SetLookUpTable (const QString &array_name, const QString &filename) |
Loads a predefined color lookup table from a file for the specified scalar array. | |
bool | GetScalarVisibility () const |
Returns the scalar visibility. | |
void | SetScalarVisibility (bool on) |
Sets the scalar visibility. | |
QString | GetName () const |
Returns the name. This is set to the file path if it is a source algorithm. | |
void | SetName (QString name) |
Sets the name. | |
bool | IsRemovable () const |
Is this algorithm removable from the pipeline (view). | |
QMap< QString, QVariant > * | GetAlgorithmUserProperties () const |
Returns a map of user properties. | |
QMap< QString, QList< QVariant > > * | GetAlgorithmUserVectorProperties () const |
Returns a map of vector user properties. | |
virtual void | SetUserProperty (QString name, QVariant value) |
Sets a user property. This should be implemented by subclasses. | |
QVariant | GetUserProperty (QString name) const |
Returns the value of a user property. | |
QList< QVariant > | GetUserVectorProperty (QString name) const |
Returns a list of values of a vector user property. | |
void | SetActiveAttribute (QString name) |
Set the active attribute. | |
QString | GetActiveAttribute () const |
Returns the desired active attribute. | |
Private Member Functions | |
VtkColorLookupTable * | GetLookupTable () |
Returns a colour lookup table optimised for quality measures. | |
Private Attributes | |
std::pair< double, double > | _range |
std::string | _selection_name |
std::vector< double > | _selection |
Additional Inherited Members | |
Signals inherited from VtkAlgorithmProperties | |
void | ScalarVisibilityChanged (bool on) |
Protected Member Functions inherited from VtkCompositeFilter | |
double | GetInitialRadius () const |
Calculates a 1/200th of the largest extension of the bounding box (this is used as default radius for various filters) | |
Protected Attributes inherited from VtkCompositeFilter | |
int | _inputDataObjectType |
int | _outputDataObjectType |
vtkAlgorithm * | _inputAlgorithm |
vtkAlgorithm * | _outputAlgorithm |
Protected Attributes inherited from VtkAlgorithmProperties | |
vtkProperty * | _property |
vtkTexture * | _texture |
bool | _scalarVisibility |
std::map< QString, vtkLookupTable * > | _lut |
QString | _name |
QString | _activeAttributeName |
bool | _removable |
QMap< QString, QVariant > * | _algorithmUserProperties |
QMap< QString, QList< QVariant > > * | _algorithmUserVectorProperties |
|
explicit |
Definition at line 31 of file VtkCompositeElementSelectionFilter.cpp.
|
overridedefault |
|
private |
Returns a colour lookup table optimised for quality measures.
Definition at line 116 of file VtkCompositeElementSelectionFilter.cpp.
References VtkColorLookupTable::Build(), VtkColorLookupTable::New(), and VtkColorLookupTable::setColor().
Referenced by init().
|
overridevirtual |
Implements VtkCompositeFilter.
Definition at line 39 of file VtkCompositeElementSelectionFilter.cpp.
References VtkCompositeFilter::_inputAlgorithm, VtkCompositeFilter::_inputDataObjectType, VtkCompositeFilter::_outputAlgorithm, VtkCompositeFilter::_outputDataObjectType, _range, _selection, _selection_name, GetLookupTable(), and VtkAlgorithmProperties::SetLookUpTable().
Referenced by setSelectionArray().
|
inline |
Definition at line 35 of file VtkCompositeElementSelectionFilter.h.
References _range.
void VtkCompositeElementSelectionFilter::setSelectionArray | ( | const std::string & | selection_name, |
const std::vector< double > & | selection = std::vector<double>() ) |
Definition at line 91 of file VtkCompositeElementSelectionFilter.cpp.
References _selection, _selection_name, and init().
|
overridevirtual |
Sets a vector user property. This should be implemented by subclasses.
Reimplemented from VtkAlgorithmProperties.
Definition at line 99 of file VtkCompositeElementSelectionFilter.cpp.
References VtkCompositeFilter::_outputAlgorithm, and VtkAlgorithmProperties::SetUserVectorProperty().
|
private |
Definition at line 45 of file VtkCompositeElementSelectionFilter.h.
Referenced by init(), and setRange().
|
private |
Definition at line 47 of file VtkCompositeElementSelectionFilter.h.
Referenced by init(), and setSelectionArray().
|
private |
Definition at line 46 of file VtkCompositeElementSelectionFilter.h.
Referenced by init(), and setSelectionArray().