OGS
VtkVisPointSetItem Class Reference

Detailed Description

An item in the VtkVisPipeline containing a point set object to be visualized.

Any VTK point set object (i.e. vtkUnstructuredGrid- and vtkPolyDataAlgorithm-objects) are represented by a VtkVisPointSetItem to be assigned a mapper, an actor and its visualization properties (colour, scalar values, etc.).

See also
VtkVisPipelineItem

Definition at line 28 of file VtkVisPointSetItem.h.

#include <VtkVisPointSetItem.h>

Inheritance diagram for VtkVisPointSetItem:
[legend]
Collaboration diagram for VtkVisPointSetItem:
[legend]

Public Member Functions

 VtkVisPointSetItem (vtkAlgorithm *algorithm, TreeItem *parentItem, const QList< QVariant > data=QList< QVariant >())
 Constructor for a source/filter object.
 VtkVisPointSetItem (VtkCompositeFilter *compositeFilter, TreeItem *parentItem, const QList< QVariant > data=QList< QVariant >())
 Constructor for composite filter.
 ~VtkVisPointSetItem () override
QString GetActiveAttribute () const override
 Gets the last selected attribute.
void GetRangeForActiveAttribute (double range[2]) const
 Get the scalar range for the active attribute.
void Initialize (vtkRenderer *renderer) override
 Initializes vtkMapper and vtkActor necessary for visualization of the item and sets the item's properties.
vtkAlgorithm * transformFilter () const override
void SetActiveAttribute (const QString &name) override
 Sets the selected attribute array for the visualisation of the data set.
void setScale (double x, double y, double z) const override
 Scales the data in visualisation-space.
void setTranslation (double x, double y, double z) const override
 Translates the item in visualisation-space.
void setBackfaceCulling (bool enable) const override
 Enables / disables backface culling.
Public Member Functions inherited from VtkVisPipelineItem
 VtkVisPipelineItem (vtkAlgorithm *algorithm, TreeItem *parentItem, const QList< QVariant > data=QList< QVariant >())
 Constructor for a source/filter object.
 VtkVisPipelineItem (VtkCompositeFilter *compositeFilter, TreeItem *parentItem, const QList< QVariant > data=QList< QVariant >())
 Constructor for composite filter.
 ~VtkVisPipelineItem () override
VtkVisPipelineItemchild (int row) const
 Returns a VtkVisPipelineItem.
QVariant data (int column) const override
bool setData (int column, const QVariant &value) override
vtkAlgorithm * algorithm () const
 Returns the algorithm object.
vtkProp3D * actor () const
 Returns the actor as vtkProp3D.
VtkCompositeFiltercompositeFilter () const
 Returns the composite filter.
bool isVisible () const
 Returns if the VTK object is visible in the visualization.
void setVisible (bool visible)
 Sets the visibility of the VTK object in the visualization.
int writeToFile (const std::string &filename) const
 Writes this algorithm's vtkDataSet (i.e. vtkPolyData or vtkUnstructuredGrid) to a vtk-file.
void setScaleOnChildren (double x, double y, double z) const
 Sets the geometry and date scaling recursively on all children of this item.
void setBackfaceCullingOnChildren (bool enable) const
 Enables / disables backface culling on all children.
QStringList getScalarArrayNames () const
 Returns a list of array names prefixed with P- or C- for point and cell data.
VtkAlgorithmPropertiesgetVtkProperties () const
 Returns the VtkAlgorithmProperties.
Public Member Functions inherited from TreeItem
 TreeItem (QList< QVariant > data, TreeItem *parent)
virtual ~TreeItem ()
void appendChild (TreeItem *item)
TreeItemchild (int row) const
virtual int childCount () const
virtual int columnCount () const
int row () const
TreeItemparentItem () const
bool removeChildren (int position, int count)

Protected Member Functions

int callVTKWriter (vtkAlgorithm *algorithm, const std::string &filename) const override
 Selects the appropriate VTK-Writer object and writes the object to a file with the given name.
void SetScalarVisibility (bool on)
void setVtkProperties (VtkAlgorithmProperties *vtkProps)
 Sets pre-set properties on vtkActor and on vtkMapper.

Protected Attributes

QVtkDataSetMapper_mapper
vtkTransformFilter * _transformFilter
bool _onPointData
std::string _activeArrayName
Protected Attributes inherited from VtkVisPipelineItem
vtkProp3D * _actor
vtkAlgorithm * _algorithm
vtkRenderer * _renderer
VtkCompositeFilter_compositeFilter
VtkAlgorithmProperties_vtkProps
 The active VtkAlgorithmProperties. From algorithm, compositeFilter, or copied from parent.

Private Member Functions

bool activeAttributeExists (vtkDataSetAttributes *data, std::string &name)
 Checks if the selected attribute actually exists for the data set.

Constructor & Destructor Documentation

◆ VtkVisPointSetItem() [1/2]

VtkVisPointSetItem::VtkVisPointSetItem ( vtkAlgorithm * algorithm,
TreeItem * parentItem,
const QList< QVariant > data = QList<QVariant>() )

Constructor for a source/filter object.

Definition at line 43 of file VtkVisPointSetItem.cpp.

47 _mapper(nullptr),
48 _transformFilter(nullptr),
49 _onPointData(true),
51{
52 auto* visParentItem = dynamic_cast<VtkVisPipelineItem*>(parentItem);
53 if (parentItem->parentItem())
54 {
55 // special case if parent is image but child is not (e.g.
56 // Image2BarChartFilter)
57 if (dynamic_cast<vtkImageAlgorithm*>(visParentItem->algorithm()))
58 {
59 _algorithm->SetInputConnection(
60 visParentItem->algorithm()->GetOutputPort());
61 }
62 else
63 {
64 auto* pointSetItem = dynamic_cast<VtkVisPointSetItem*>(parentItem);
65 if (pointSetItem)
66 {
67 _algorithm->SetInputConnection(
68 pointSetItem->transformFilter()->GetOutputPort());
69 }
70 }
71 }
72}
TreeItem * parentItem() const
Definition TreeItem.cpp:104
virtual QVariant data(int column) const
Definition TreeItem.cpp:83
vtkAlgorithm * algorithm() const
Returns the algorithm object.
VtkVisPipelineItem(vtkAlgorithm *algorithm, TreeItem *parentItem, const QList< QVariant > data=QList< QVariant >())
Constructor for a source/filter object.
vtkAlgorithm * _algorithm
VtkVisPointSetItem(vtkAlgorithm *algorithm, TreeItem *parentItem, const QList< QVariant > data=QList< QVariant >())
Constructor for a source/filter object.
QVtkDataSetMapper * _mapper
vtkTransformFilter * _transformFilter

References TreeItem::TreeItem(), VtkVisPipelineItem::VtkVisPipelineItem(), _activeArrayName, _mapper, _onPointData, _transformFilter, VtkVisPipelineItem::algorithm(), VtkVisPipelineItem::data(), and TreeItem::parentItem().

Referenced by Initialize().

◆ VtkVisPointSetItem() [2/2]

VtkVisPointSetItem::VtkVisPointSetItem ( VtkCompositeFilter * compositeFilter,
TreeItem * parentItem,
const QList< QVariant > data = QList<QVariant>() )

Constructor for composite filter.

Definition at line 74 of file VtkVisPointSetItem.cpp.

78 _mapper(nullptr),
79 _transformFilter(nullptr),
80 _onPointData(true),
82{
83}
VtkCompositeFilter * compositeFilter() const
Returns the composite filter.

References TreeItem::TreeItem(), VtkVisPipelineItem::VtkVisPipelineItem(), _activeArrayName, _mapper, _onPointData, _transformFilter, VtkVisPipelineItem::compositeFilter(), VtkVisPipelineItem::data(), and TreeItem::parentItem().

◆ ~VtkVisPointSetItem()

VtkVisPointSetItem::~VtkVisPointSetItem ( )
override

Definition at line 85 of file VtkVisPointSetItem.cpp.

86{
87 _transformFilter->Delete();
88 _mapper->Delete();
89}

References _mapper, and _transformFilter.

Member Function Documentation

◆ activeAttributeExists()

bool VtkVisPointSetItem::activeAttributeExists ( vtkDataSetAttributes * data,
std::string & name )
private

Checks if the selected attribute actually exists for the data set.

Definition at line 367 of file VtkVisPointSetItem.cpp.

369{
370 bool arrayFound = false;
371 for (int i = 0; i < data->GetNumberOfArrays() && !arrayFound; i++)
372 {
373 std::string arrayName = data->GetArrayName(i);
374 if (arrayName == name)
375 {
376 arrayFound = true;
377 }
378 }
379 if (arrayFound)
380 {
381 // TODO Necessary? Currently this function is not called
382 data->SetActiveAttribute(name.c_str(), vtkDataSetAttributes::SCALARS);
383 return true;
384 }
385
386 return false;
387}

References VtkVisPipelineItem::data().

◆ callVTKWriter()

int VtkVisPointSetItem::callVTKWriter ( vtkAlgorithm * algorithm,
const std::string & filename ) const
overrideprotectedvirtual

Selects the appropriate VTK-Writer object and writes the object to a file with the given name.

Reimplemented from VtkVisPipelineItem.

Definition at line 249 of file VtkVisPointSetItem.cpp.

251{
252 std::string file_name_cpy(filename);
253 auto* algPD = dynamic_cast<vtkPolyDataAlgorithm*>(algorithm);
254 if (algPD)
255 {
256 vtkSmartPointer<vtkXMLPolyDataWriter> pdWriter =
257 vtkSmartPointer<vtkXMLPolyDataWriter>::New();
258 pdWriter->SetInputData(algPD->GetOutputDataObject(0));
259 if (BaseLib::getFileExtension(filename) != ".vtp")
260 {
261 file_name_cpy.append(".vtp");
262 }
263 pdWriter->SetFileName(file_name_cpy.c_str());
264 return pdWriter->Write();
265 }
266
267 auto* algUG = dynamic_cast<vtkUnstructuredGridAlgorithm*>(algorithm);
268 if (algUG)
269 {
270 vtkSmartPointer<vtkXMLUnstructuredGridWriter> ugWriter =
271 vtkSmartPointer<vtkXMLUnstructuredGridWriter>::New();
272 ugWriter->SetInputData(algUG->GetOutputDataObject(0));
273 if (BaseLib::getFileExtension(filename) != ".vtu")
274 {
275 file_name_cpy.append(".vtu");
276 }
277 ugWriter->SetFileName(file_name_cpy.c_str());
278 return ugWriter->Write();
279 }
280
281 WARN("VtkVisPipelineItem::writeToFile(): Unknown data type.");
282 return 0;
283}
void WARN(fmt::format_string< Args... > fmt, Args &&... args)
Definition Logging.h:34
std::string getFileExtension(const std::string &path)

References VtkVisPipelineItem::algorithm(), BaseLib::getFileExtension(), and WARN().

◆ GetActiveAttribute()

QString VtkVisPointSetItem::GetActiveAttribute ( ) const
overridevirtual

Gets the last selected attribute.

Reimplemented from VtkVisPipelineItem.

Definition at line 90 of file VtkVisPointSetItem.cpp.

91{
92 return _vtkProps->GetActiveAttribute();
93}
VtkAlgorithmProperties * _vtkProps
The active VtkAlgorithmProperties. From algorithm, compositeFilter, or copied from parent.

References VtkVisPipelineItem::_vtkProps.

◆ GetRangeForActiveAttribute()

void VtkVisPointSetItem::GetRangeForActiveAttribute ( double range[2]) const

Get the scalar range for the active attribute.

Definition at line 429 of file VtkVisPointSetItem.cpp.

430{
431 vtkDataSet* dataSet =
432 vtkDataSet::SafeDownCast(this->_algorithm->GetOutputDataObject(0));
433 if (dataSet && _activeArrayName.length() > 0)
434 {
435 if (_onPointData)
436 {
437 vtkPointData* pointData = dataSet->GetPointData();
438 if (pointData)
439 {
440 pointData->GetArray(_activeArrayName.c_str())->GetRange(range);
441 }
442 }
443 else
444 {
445 vtkCellData* cellData = dataSet->GetCellData();
446 cellData->GetArray(_activeArrayName.c_str())->GetRange(range);
447 }
448 }
449}

References _activeArrayName, VtkVisPipelineItem::_algorithm, and _onPointData.

Referenced by Initialize(), and SetActiveAttribute().

◆ Initialize()

void VtkVisPointSetItem::Initialize ( vtkRenderer * renderer)
overridevirtual

Initializes vtkMapper and vtkActor necessary for visualization of the item and sets the item's properties.

Implements VtkVisPipelineItem.

Definition at line 95 of file VtkVisPointSetItem.cpp.

96{
97 // TODO vtkTransformFilter creates a new copy of the point coordinates which
98 // conflicts with VtkMappedMeshSource. Find a workaround!
99 _transformFilter = vtkTransformFilter::New();
100 vtkSmartPointer<vtkTransform> transform =
101 vtkSmartPointer<vtkTransform>::New();
102 transform->Identity();
103 _transformFilter->SetTransform(transform);
104
105 auto* parentItem = dynamic_cast<VtkVisPipelineItem*>(this->parentItem());
106 if (parentItem)
107 {
108 _transformFilter->SetInputConnection(_algorithm->GetOutputPort());
109 }
110 else
111 {
112 _algorithm->Update();
113 _transformFilter->SetInputDataObject(
114 _algorithm->GetOutputDataObject(0));
115 }
116 _transformFilter->Update();
117
118 _renderer = renderer;
120 _mapper->InterpolateScalarsBeforeMappingOff();
121 _mapper->SetColorModeToMapScalars();
122
123 _mapper->SetInputConnection(_transformFilter->GetOutputPort());
124 _actor = vtkActor::New();
125 static_cast<vtkActor*>(_actor)->SetMapper(_mapper);
126 _renderer->AddActor(_actor);
127
128 // Determine the right pre-set properties
129 // Order is: _algorithm, _compositeFilter, create a new one with props
130 // copied from parent
131 auto* vtkProps = dynamic_cast<VtkAlgorithmProperties*>(_algorithm);
132 if (!vtkProps)
133 {
134 vtkProps = dynamic_cast<VtkAlgorithmProperties*>(_compositeFilter);
135
136 // Copy properties from parent or create a new VtkAlgorithmProperties
137 if (!vtkProps)
138 {
139 auto* parentItem =
140 dynamic_cast<VtkVisPipelineItem*>(this->parentItem());
141 while (parentItem)
142 {
143 VtkAlgorithmProperties* parentProps = nullptr;
144 if (dynamic_cast<VtkVisPointSetItem*>(parentItem))
145 {
146 parentProps = dynamic_cast<VtkVisPointSetItem*>(parentItem)
148 }
149 if (parentProps)
150 {
151 vtkProps =
152 new VtkAlgorithmProperties(); // TODO memory leak?
153 vtkProps->SetScalarVisibility(
154 parentProps->GetScalarVisibility());
155 vtkProps->SetTexture(parentProps->GetTexture());
156 vtkProps->SetActiveAttribute(
157 parentProps->GetActiveAttribute());
158 parentItem = nullptr;
159 }
160 else
161 {
162 parentItem = dynamic_cast<VtkVisPipelineItem*>(
163 parentItem->parentItem());
164 }
165 }
166
167 // Has no parents
168 if (!vtkProps)
169 {
170 vtkProps = new VtkAlgorithmProperties(); // TODO memory leak?
171 }
172 }
173 }
174 _vtkProps = vtkProps;
175
176 if (vtkProps->GetActiveAttribute().length() == 0)
177 {
178 // Get first scalar and set it to active
179 QStringList arrayNames = this->getScalarArrayNames();
180 if (arrayNames.length() > 0)
181 {
182 vtkProps->SetActiveAttribute(arrayNames[0]);
183 }
184 else
185 {
186 vtkProps->SetActiveAttribute("Solid Color");
187 }
188 }
189 this->setVtkProperties(vtkProps);
190 this->SetActiveAttribute(vtkProps->GetActiveAttribute());
191
192 // Set global backface culling
193 QSettings settings;
194 bool backfaceCulling = settings.value("globalCullBackfaces", 0).toBool();
195 this->setBackfaceCulling(backfaceCulling);
196
197 // Set the correct threshold range
198 if (dynamic_cast<VtkCompositeThresholdFilter*>(this->_compositeFilter))
199 {
200 double range[2];
201 this->GetRangeForActiveAttribute(range);
202 QList<QVariant> thresholdRangeList;
203 thresholdRangeList.push_back(range[0]);
204 thresholdRangeList.push_back(range[1]);
205 dynamic_cast<VtkCompositeFilter*>(this->_compositeFilter)
206 ->SetUserVectorProperty("Range", thresholdRangeList);
207 }
208
209 // Show edges on meshes
210 if (dynamic_cast<MeshLib::VtkMappedMeshSource*>(this->_algorithm))
211 {
212 _vtkProps->GetProperties()->SetEdgeVisibility(1);
213 }
214}
static QVtkDataSetMapper * New()
Create new objects with New() because of VTKs reference counting.
bool GetScalarVisibility() const
Returns the scalar visibility.
vtkTexture * GetTexture()
Returns a texture (if one has been assigned).
QString GetActiveAttribute() const
Returns the desired active attribute.
QStringList getScalarArrayNames() const
Returns a list of array names prefixed with P- or C- for point and cell data.
VtkCompositeFilter * _compositeFilter
VtkAlgorithmProperties * getVtkProperties() const
Returns the VtkAlgorithmProperties.
void GetRangeForActiveAttribute(double range[2]) const
Get the scalar range for the active attribute.
void SetActiveAttribute(const QString &name) override
Sets the selected attribute array for the visualisation of the data set.
void setVtkProperties(VtkAlgorithmProperties *vtkProps)
Sets pre-set properties on vtkActor and on vtkMapper.
void setBackfaceCulling(bool enable) const override
Enables / disables backface culling.

References VtkVisPipelineItem::VtkVisPipelineItem(), VtkVisPointSetItem(), VtkVisPipelineItem::_actor, VtkVisPipelineItem::_algorithm, VtkVisPipelineItem::_compositeFilter, _mapper, VtkVisPipelineItem::_renderer, _transformFilter, VtkVisPipelineItem::_vtkProps, VtkAlgorithmProperties::GetActiveAttribute(), GetRangeForActiveAttribute(), VtkVisPipelineItem::getScalarArrayNames(), VtkAlgorithmProperties::GetScalarVisibility(), VtkAlgorithmProperties::GetTexture(), VtkVisPipelineItem::getVtkProperties(), QVtkDataSetMapper::New(), TreeItem::parentItem(), SetActiveAttribute(), setBackfaceCulling(), and setVtkProperties().

◆ SetActiveAttribute()

void VtkVisPointSetItem::SetActiveAttribute ( const QString & name)
overridevirtual

Sets the selected attribute array for the visualisation of the data set.

Reimplemented from VtkVisPipelineItem.

Definition at line 285 of file VtkVisPointSetItem.cpp.

286{
287 // Get type by identifier
288 if (name.contains(QRegExp("^P-")))
289 {
290 _onPointData = true;
291 }
292 else if (name.contains(QRegExp("^C-")))
293 {
294 _onPointData = false;
295 }
296 else if (name.contains("Solid Color"))
297 {
298 _vtkProps->SetActiveAttribute("Solid Color");
299 _mapper->ScalarVisibilityOff();
300 return;
301 }
302 else
303 {
304 return;
305 }
306
307 // Remove type identifier
308 _activeArrayName = QString(name).remove(0, 2).toStdString();
309
310 vtkDataSet* dataSet =
311 vtkDataSet::SafeDownCast(this->_algorithm->GetOutputDataObject(0));
312 if (!dataSet)
313 {
314 return;
315 }
316
317 double range[2];
319 if (_onPointData)
320 {
321 vtkPointData* pointData = dataSet->GetPointData();
322 if (pointData)
323 {
324 _algorithm->SetInputArrayToProcess(
325 0, 0, 0, vtkDataObject::FIELD_ASSOCIATION_POINTS,
326 _activeArrayName.c_str());
327 _mapper->SetScalarModeToUsePointFieldData();
328 }
329 }
330 else
331 {
332 vtkCellData* cellData = dataSet->GetCellData();
333 if (cellData)
334 {
335 _algorithm->SetInputArrayToProcess(
336 0, 0, 0, vtkDataObject::FIELD_ASSOCIATION_CELLS,
337 _activeArrayName.c_str());
338 _mapper->SetScalarModeToUseCellFieldData();
339 }
340 }
341
342 _vtkProps->SetActiveAttribute(name);
343
344 _mapper->ScalarVisibilityOn();
345 _mapper->UseLookupTableScalarRangeOn();
346
347 auto* mapper = dynamic_cast<QVtkDataSetMapper*>(_mapper);
348 if (mapper)
349 {
350 // Create a default color table when there is no lookup table for this
351 // attribute
352 vtkLookupTable* lut = _vtkProps->GetLookupTable(name);
353 if (lut == nullptr)
354 {
355 // std::cout << "Creating new lookup table for: " <<
356 // name.toStdString() << std::endl;
357 lut = vtkLookupTable::New(); // is not a memory leak, gets deleted
358 // in VtkAlgorithmProperties
359 lut->SetTableRange(range);
360 _vtkProps->SetLookUpTable(name, lut);
361 }
362 _mapper->SetLookupTable(lut);
363 }
364 _mapper->SelectColorArray(_activeArrayName.c_str());
365}

References _activeArrayName, VtkVisPipelineItem::_algorithm, _mapper, _onPointData, VtkVisPipelineItem::_vtkProps, and GetRangeForActiveAttribute().

Referenced by Initialize().

◆ setBackfaceCulling()

void VtkVisPointSetItem::setBackfaceCulling ( bool enable) const
overridevirtual

Enables / disables backface culling.

Reimplemented from VtkVisPipelineItem.

Definition at line 422 of file VtkVisPointSetItem.cpp.

423{
424 static_cast<vtkActor*>(this->_actor)
425 ->GetProperty()
426 ->SetBackfaceCulling(static_cast<int>(enable));
427}

References VtkVisPipelineItem::_actor.

Referenced by Initialize().

◆ SetScalarVisibility()

void VtkVisPointSetItem::SetScalarVisibility ( bool on)
protected

Definition at line 216 of file VtkVisPointSetItem.cpp.

217{
218 _mapper->SetScalarVisibility(on);
219}

References _mapper.

Referenced by setVtkProperties().

◆ setScale()

void VtkVisPointSetItem::setScale ( double x,
double y,
double z ) const
overridevirtual

Scales the data in visualisation-space.

Reimplemented from VtkVisPipelineItem.

Definition at line 389 of file VtkVisPointSetItem.cpp.

390{
391 if (this->transformFilter())
392 {
393 auto* transform =
394 static_cast<vtkTransform*>(this->_transformFilter->GetTransform());
395 double* trans = transform->GetPosition();
396 transform->Identity();
397 transform->Scale(x, y, z);
398 transform->Translate(trans[0] / x, trans[1] / y, trans[2] / z);
399 this->transformFilter()->Modified();
400 }
401}
vtkAlgorithm * transformFilter() const override

References _transformFilter, and transformFilter().

◆ setTranslation()

void VtkVisPointSetItem::setTranslation ( double x,
double y,
double z ) const
overridevirtual

Translates the item in visualisation-space.

Reimplemented from VtkVisPipelineItem.

Definition at line 403 of file VtkVisPointSetItem.cpp.

404{
405 if (this->transformFilter())
406 {
407 auto* transform =
408 static_cast<vtkTransform*>(this->_transformFilter->GetTransform());
409 double* scale = transform->GetScale();
410 transform->Identity();
411 transform->Scale(scale);
412 transform->Translate(x, y, z);
413 this->transformFilter()->Modified();
414 }
415}
void scale(PETScVector &x, PetscScalar const a)
Definition LinAlg.cpp:37

References _transformFilter, and transformFilter().

◆ setVtkProperties()

void VtkVisPointSetItem::setVtkProperties ( VtkAlgorithmProperties * vtkProps)
protected

Sets pre-set properties on vtkActor and on vtkMapper.

Definition at line 221 of file VtkVisPointSetItem.cpp.

222{
223 QObject::connect(vtkProps, SIGNAL(ScalarVisibilityChanged(bool)), _mapper,
224 SLOT(SetScalarVisibility(bool)));
225
226 auto* actor = dynamic_cast<vtkActor*>(_actor);
227 if (actor)
228 {
229 if (vtkProps->GetTexture() != nullptr)
230 {
231 vtkProps->SetScalarVisibility(false);
232 actor->GetProperty()->SetColor(1, 1, 1); // don't colorise textures
233 actor->SetTexture(vtkProps->GetTexture());
234 }
235 else
236 {
237 vtkSmartPointer<vtkProperty> itemProperty =
238 vtkProps->GetProperties();
239 actor->SetProperty(itemProperty);
240 }
241
242 if (!vtkProps->GetScalarVisibility())
243 {
244 vtkProps->SetScalarVisibility(false);
245 }
246 }
247}
void SetScalarVisibility(bool on)
Sets the scalar visibility.
vtkProperty * GetProperties() const
Returns the vtk properties.
vtkProp3D * actor() const
Returns the actor as vtkProp3D.
void SetScalarVisibility(bool on)

References VtkVisPipelineItem::_actor, _mapper, VtkVisPipelineItem::actor(), VtkAlgorithmProperties::GetProperties(), VtkAlgorithmProperties::GetScalarVisibility(), VtkAlgorithmProperties::GetTexture(), VtkAlgorithmProperties::SetScalarVisibility(), and SetScalarVisibility().

Referenced by Initialize().

◆ transformFilter()

vtkAlgorithm * VtkVisPointSetItem::transformFilter ( ) const
overridevirtual

Returns the transform filter for the object. This function needs to be implemented by derived classes.

Implements VtkVisPipelineItem.

Definition at line 417 of file VtkVisPointSetItem.cpp.

418{
419 return _transformFilter;
420}

References _transformFilter.

Referenced by setScale(), and setTranslation().

Member Data Documentation

◆ _activeArrayName

std::string VtkVisPointSetItem::_activeArrayName
protected

◆ _mapper

◆ _onPointData

bool VtkVisPointSetItem::_onPointData
protected

◆ _transformFilter

vtkTransformFilter* VtkVisPointSetItem::_transformFilter
protected

The documentation for this class was generated from the following files: