OGS
|
VTK source object for the visualisation of station data (including boreholes)
Definition at line 27 of file VtkStationSource.h.
#include <VtkStationSource.h>
Public Member Functions | |
vtkTypeMacro (VtkStationSource, vtkPolyDataAlgorithm) | |
const std::map< std::string, DataHolderLib::Color > & | getColorLookupTable () const |
void | setStations (const std::vector< GeoLib::Point * > *stations) |
Sets a predefined color lookup table for the colouring of borehole stratigraphies. | |
void | PrintSelf (ostream &os, vtkIndent indent) override |
Prints its data on a stream. | |
void | SetUserProperty (QString name, QVariant value) override |
Sets a user property. This should be implemented by subclasses. | |
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. | |
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. | |
Static Public Member Functions | |
static VtkStationSource * | New () |
Create new objects with New() because of VTKs object reference counting. | |
Protected Member Functions | |
VtkStationSource () | |
int | RequestData (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override |
Computes the polygonal data object. | |
int | RequestInformation (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override |
Protected Attributes | |
const std::vector< GeoLib::Point * > * | _stations {nullptr} |
The stations to visualize. | |
std::map< std::string, DataHolderLib::Color > | _colorLookupTable |
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 |
Private Member Functions | |
std::size_t | GetIndexByName (std::string const &name) |
Private Attributes | |
std::map< std::string, vtkIdType > | _id_map |
Additional Inherited Members | |
Signals inherited from VtkAlgorithmProperties | |
void | ScalarVisibilityChanged (bool on) |
|
protected |
Definition at line 37 of file VtkStationSource.cpp.
References VtkAlgorithmProperties::_removable, VtkAlgorithmProperties::GetProperties(), and DataHolderLib::getRandomColor().
|
inline |
Returns the colour lookup table generated for boreholes. This method should only be called after the colour lookup table has actually been build (via RequestData() or setColorLookupTable()).
Definition at line 37 of file VtkStationSource.h.
References _colorLookupTable.
Referenced by StationTreeView::displayStratigraphy(), and StationTreeView::writeStratigraphiesAsImages().
|
private |
Definition at line 226 of file VtkStationSource.cpp.
References _id_map, and INFO().
Referenced by RequestData().
|
static |
Create new objects with New() because of VTKs object reference counting.
|
override |
Prints its data on a stream.
Definition at line 46 of file VtkStationSource.cpp.
References _stations.
|
overrideprotected |
Computes the polygonal data object.
Create 3d Station objects.
Definition at line 68 of file VtkStationSource.cpp.
References _stations, and GetIndexByName().
|
overrideprotected |
Definition at line 213 of file VtkStationSource.cpp.
|
inline |
Sets a predefined color lookup table for the colouring of borehole stratigraphies.
Sets the stations as a vector
Definition at line 45 of file VtkStationSource.h.
References _stations.
Referenced by BaseItem::BaseItem().
|
overridevirtual |
Sets a user property. This should be implemented by subclasses.
Reimplemented from VtkAlgorithmProperties.
Definition at line 220 of file VtkStationSource.cpp.
VtkStationSource::vtkTypeMacro | ( | VtkStationSource | , |
vtkPolyDataAlgorithm | ) |
|
protected |
The colour table for stratigraphic data. This table is either set using the setColorLookupTable() method or is generated automatically with random colours while creating the VtkStationSource-object.
Definition at line 69 of file VtkStationSource.h.
Referenced by getColorLookupTable().
|
private |
Definition at line 74 of file VtkStationSource.h.
Referenced by GetIndexByName().
|
protected |
The stations to visualize.
Definition at line 65 of file VtkStationSource.h.
Referenced by PrintSelf(), RequestData(), and setStations().