OGS
|
Contains properties for the visualization of objects as VtkVisPipelineItems.
Definition at line 137 of file VtkAlgorithmProperties.h.
#include <VtkAlgorithmProperties.h>
Signals | |
void | ScalarVisibilityChanged (bool on) |
Public Member Functions | |
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. | |
virtual void | SetUserVectorProperty (QString name, QList< QVariant > values) |
Sets a vector user property. This should be implemented by subclasses. | |
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. | |
Protected Attributes | |
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 |
Constructor (sets default values)
Definition at line 26 of file VtkAlgorithmProperties.cpp.
References _activeAttributeName, _algorithmUserProperties, _algorithmUserVectorProperties, _property, _removable, _scalarVisibility, and _texture.
|
override |
Definition at line 38 of file VtkAlgorithmProperties.cpp.
References _algorithmUserProperties, _algorithmUserVectorProperties, _lut, _property, and _texture.
|
inline |
Returns the desired active attribute.
Definition at line 215 of file VtkAlgorithmProperties.h.
References _activeAttributeName.
Referenced by VtkVisPointSetItem::GetActiveAttribute(), VtkCompositeColorByHeightFilter::init(), and VtkVisPointSetItem::Initialize().
|
inline |
Returns a map of user properties.
Definition at line 184 of file VtkAlgorithmProperties.h.
References _algorithmUserProperties.
Referenced by VtkVisTabWidget::buildProportiesDialog().
|
inline |
Returns a map of vector user properties.
Definition at line 189 of file VtkAlgorithmProperties.h.
References _algorithmUserVectorProperties.
Referenced by VtkVisTabWidget::buildProportiesDialog().
vtkLookupTable * VtkAlgorithmProperties::GetLookupTable | ( | const QString & | array_name | ) |
Returns the colour lookup table (if one has been assigned).
Definition at line 54 of file VtkAlgorithmProperties.cpp.
References _lut.
Referenced by VtkVisPointSetItem::SetActiveAttribute(), VtkCompositeImageToCylindersFilter::SetUserProperty(), and VtkCompositeImageToCylindersFilter::SetUserVectorProperty().
|
inline |
Returns the name. This is set to the file path if it is a source algorithm.
Definition at line 175 of file VtkAlgorithmProperties.h.
References _name.
|
inline |
Returns the vtk properties.
Definition at line 148 of file VtkAlgorithmProperties.h.
References _property.
Referenced by VtkPointsSource::VtkPointsSource(), VtkPolylinesSource::VtkPolylinesSource(), VtkStationSource::VtkStationSource(), VtkSurfacesSource::VtkSurfacesSource(), VtkVisPointSetItem::Initialize(), and VtkVisPointSetItem::setVtkProperties().
|
inline |
Returns the scalar visibility.
Definition at line 169 of file VtkAlgorithmProperties.h.
References _scalarVisibility.
Referenced by VtkVisPointSetItem::Initialize(), and VtkVisPointSetItem::setVtkProperties().
|
inline |
Returns a texture (if one has been assigned).
Definition at line 151 of file VtkAlgorithmProperties.h.
References _texture.
Referenced by VtkVisPointSetItem::Initialize(), VtkTextureOnSurfaceFilter::RequestData(), and VtkVisPointSetItem::setVtkProperties().
QVariant VtkAlgorithmProperties::GetUserProperty | ( | QString | name | ) | const |
Returns the value of a user property.
Definition at line 109 of file VtkAlgorithmProperties.cpp.
References _algorithmUserProperties, and ERR().
Referenced by VtkCompositeImageToPointCloudFilter::SetUserProperty(), and VtkCompositeContourFilter::SetUserVectorProperty().
QList< QVariant > VtkAlgorithmProperties::GetUserVectorProperty | ( | QString | name | ) | const |
Returns a list of values of a vector user property.
Definition at line 120 of file VtkAlgorithmProperties.cpp.
References _algorithmUserVectorProperties, and ERR().
|
inline |
Is this algorithm removable from the pipeline (view).
Definition at line 181 of file VtkAlgorithmProperties.h.
References _removable.
Referenced by VtkVisPipelineView::contextMenuEvent().
void VtkAlgorithmProperties::RemoveLookupTable | ( | const QString & | array_name | ) |
Removes the lookup table for the given scalar.
Definition at line 66 of file VtkAlgorithmProperties.cpp.
References _lut.
Referenced by VtkVisTabWidget::on_arrayResetPushButton_clicked(), and SetLookUpTable().
|
signal |
Referenced by SetScalarVisibility().
void VtkAlgorithmProperties::SetActiveAttribute | ( | QString | name | ) |
Set the active attribute.
Definition at line 132 of file VtkAlgorithmProperties.cpp.
References _activeAttributeName, and SetScalarVisibility().
Referenced by VtkVisPointSetItem::SetActiveAttribute().
void VtkAlgorithmProperties::SetLookUpTable | ( | const QString & | array_name, |
const QString & | filename ) |
Loads a predefined color lookup table from a file for the specified scalar array.
Definition at line 89 of file VtkAlgorithmProperties.cpp.
References ERR(), VtkColorLookupTable::New(), FileIO::XmlLutReader::readFromFile(), SetLookUpTable(), and VtkColorLookupTable::setLookupTable().
void VtkAlgorithmProperties::SetLookUpTable | ( | const QString & | array_name, |
vtkLookupTable * | lut ) |
Sets a colour lookup table for the given scalar array of the VtkVisPipelineItem.
Definition at line 76 of file VtkAlgorithmProperties.cpp.
References _activeAttributeName, _lut, and RemoveLookupTable().
Referenced by VtkVisPipelineView::addColorTable(), VtkCompositeColorByHeightFilter::init(), VtkCompositeElementSelectionFilter::init(), VtkCompositeImageToCylindersFilter::init(), VtkVisPointSetItem::SetActiveAttribute(), and SetLookUpTable().
|
inline |
Sets the name.
Definition at line 178 of file VtkAlgorithmProperties.h.
References _name.
Referenced by MainWindow::loadFile(), and VtkGeoImageSource::setImage().
void VtkAlgorithmProperties::SetScalarVisibility | ( | bool | on | ) |
Sets the scalar visibility.
Definition at line 103 of file VtkAlgorithmProperties.cpp.
References _scalarVisibility, and ScalarVisibilityChanged().
Referenced by SetActiveAttribute(), and VtkVisPointSetItem::setVtkProperties().
|
inline |
Sets a texture for the VtkVisPipelineItem.
Definition at line 154 of file VtkAlgorithmProperties.h.
References _texture.
Referenced by VtkBGImageSource::SetRaster(), and VtkTextureOnSurfaceFilter::SetRaster().
|
inlinevirtual |
Sets a user property. This should be implemented by subclasses.
Reimplemented in VtkAppendArrayFilter, VtkBGImageSource, VtkColorByHeightFilter, VtkCompositeColorByHeightFilter, VtkCompositeColormapToImageFilter, VtkCompositeContourFilter, VtkCompositeGeoObjectFilter, VtkCompositeImageToCylindersFilter, VtkCompositeImageToPointCloudFilter, VtkCompositeImageToSurfacePointsFilter, VtkCompositeLineToTubeFilter, VtkCompositePointToGlyphFilter, VtkCompositeTextureOnSurfaceFilter, VtkCompositeThresholdFilter, VtkGeoImageSource, VtkImageDataToLinePolyDataFilter, VtkPointsSource, VtkPolylinesSource, VtkStationSource, VtkSurfacesSource, and VtkTextureOnSurfaceFilter.
Definition at line 194 of file VtkAlgorithmProperties.h.
Referenced by VtkCompositeGeoObjectFilter::init(), VtkAlgorithmPropertyCheckbox::setNewValue(), VtkAlgorithmPropertyLineEdit::setNewValue(), VtkBGImageSource::SetUserProperty(), VtkCompositeColormapToImageFilter::SetUserProperty(), VtkCompositeContourFilter::SetUserProperty(), VtkCompositeImageToCylindersFilter::SetUserProperty(), VtkCompositeImageToPointCloudFilter::SetUserProperty(), VtkCompositeImageToSurfacePointsFilter::SetUserProperty(), VtkCompositeLineToTubeFilter::SetUserProperty(), VtkCompositePointToGlyphFilter::SetUserProperty(), VtkCompositeTextureOnSurfaceFilter::SetUserProperty(), VtkCompositeThresholdFilter::SetUserProperty(), VtkSurfacesSource::SetUserProperty(), and VtkTextureOnSurfaceFilter::SetUserProperty().
|
inlinevirtual |
Sets a vector user property. This should be implemented by subclasses.
Reimplemented in VtkCompositeColormapToImageFilter, VtkCompositeContourFilter, VtkCompositeElementSelectionFilter, VtkCompositeImageToCylindersFilter, VtkCompositeImageToPointCloudFilter, VtkCompositeImageToSurfacePointsFilter, and VtkCompositeThresholdFilter.
Definition at line 203 of file VtkAlgorithmProperties.h.
Referenced by VtkAlgorithmPropertyVectorEdit::setNewValue(), VtkCompositeColormapToImageFilter::SetUserVectorProperty(), VtkCompositeContourFilter::SetUserVectorProperty(), VtkCompositeElementSelectionFilter::SetUserVectorProperty(), VtkCompositeImageToCylindersFilter::SetUserVectorProperty(), VtkCompositeImageToPointCloudFilter::SetUserVectorProperty(), and VtkCompositeThresholdFilter::SetUserVectorProperty().
|
protected |
Definition at line 230 of file VtkAlgorithmProperties.h.
Referenced by VtkAlgorithmProperties(), GetActiveAttribute(), VtkCompositeColorByHeightFilter::init(), SetActiveAttribute(), and SetLookUpTable().
|
protected |
Definition at line 233 of file VtkAlgorithmProperties.h.
Referenced by VtkAlgorithmProperties(), ~VtkAlgorithmProperties(), GetAlgorithmUserProperties(), and GetUserProperty().
|
protected |
Definition at line 234 of file VtkAlgorithmProperties.h.
Referenced by VtkAlgorithmProperties(), ~VtkAlgorithmProperties(), GetAlgorithmUserVectorProperties(), and GetUserVectorProperty().
|
protected |
Definition at line 226 of file VtkAlgorithmProperties.h.
Referenced by ~VtkAlgorithmProperties(), GetLookupTable(), RemoveLookupTable(), and SetLookUpTable().
|
protected |
Definition at line 229 of file VtkAlgorithmProperties.h.
|
protected |
Definition at line 221 of file VtkAlgorithmProperties.h.
Referenced by VtkAlgorithmProperties(), ~VtkAlgorithmProperties(), and GetProperties().
|
protected |
Definition at line 231 of file VtkAlgorithmProperties.h.
Referenced by VtkAlgorithmProperties(), VtkPointsSource::VtkPointsSource(), VtkPolylinesSource::VtkPolylinesSource(), VtkStationSource::VtkStationSource(), VtkSurfacesSource::VtkSurfacesSource(), and IsRemovable().
|
protected |
Definition at line 225 of file VtkAlgorithmProperties.h.
Referenced by VtkAlgorithmProperties(), GetScalarVisibility(), and SetScalarVisibility().
|
protected |
Definition at line 222 of file VtkAlgorithmProperties.h.
Referenced by VtkAlgorithmProperties(), ~VtkAlgorithmProperties(), GetTexture(), and SetTexture().