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 39 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 Member Functions inherited from VtkVisPipelineItem

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 54 of file VtkVisPointSetItem.cpp.

58 _mapper(nullptr),
59 _transformFilter(nullptr),
60 _onPointData(true),
62{
63 auto* visParentItem = dynamic_cast<VtkVisPipelineItem*>(parentItem);
65 {
66 // special case if parent is image but child is not (e.g.
67 // Image2BarChartFilter)
68 if (dynamic_cast<vtkImageAlgorithm*>(visParentItem->algorithm()))
69 {
70 _algorithm->SetInputConnection(
71 visParentItem->algorithm()->GetOutputPort());
72 }
73 else
74 {
75 auto* pointSetItem = dynamic_cast<VtkVisPointSetItem*>(parentItem);
76 if (pointSetItem)
77 {
78 _algorithm->SetInputConnection(
79 pointSetItem->transformFilter()->GetOutputPort());
80 }
81 }
82 }
83}
TreeItem * parentItem() const
Definition TreeItem.cpp:115
An item in the VtkVisPipeline containing a graphic object to be visualized.
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
QVariant data(int column) const override
An item in the VtkVisPipeline containing a point set object to be visualized.
QVtkDataSetMapper * _mapper
vtkTransformFilter * _transformFilter

References TreeItem::parentItem().

◆ VtkVisPointSetItem() [2/2]

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

Constructor for composite filter.

Definition at line 85 of file VtkVisPointSetItem.cpp.

89 _mapper(nullptr),
90 _transformFilter(nullptr),
91 _onPointData(true),
93{
94}
VtkCompositeFilter * compositeFilter() const
Returns the composite filter.

◆ ~VtkVisPointSetItem()

VtkVisPointSetItem::~VtkVisPointSetItem ( )
override

Definition at line 96 of file VtkVisPointSetItem.cpp.

97{
98 _transformFilter->Delete();
99 _mapper->Delete();
100}

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 368 of file VtkVisPointSetItem.cpp.

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

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 250 of file VtkVisPointSetItem.cpp.

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

102{
104}
QString GetActiveAttribute() const
Returns the desired active attribute.
VtkAlgorithmProperties * _vtkProps
The active VtkAlgorithmProperties. From algorithm, compositeFilter, or copied from parent.

References VtkVisPipelineItem::_vtkProps, and VtkAlgorithmProperties::GetActiveAttribute().

◆ GetRangeForActiveAttribute()

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

Get the scalar range for the active attribute.

Definition at line 430 of file VtkVisPointSetItem.cpp.

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

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 106 of file VtkVisPointSetItem.cpp.

107{
108 // TODO vtkTransformFilter creates a new copy of the point coordinates which
109 // conflicts with VtkMappedMeshSource. Find a workaround!
110 _transformFilter = vtkTransformFilter::New();
111 vtkSmartPointer<vtkTransform> transform =
112 vtkSmartPointer<vtkTransform>::New();
113 transform->Identity();
114 _transformFilter->SetTransform(transform);
115
116 _transformFilter->SetInputConnection(_algorithm->GetOutputPort());
117 _transformFilter->Update();
118
119 _renderer = renderer;
121 _mapper->InterpolateScalarsBeforeMappingOff();
122 _mapper->SetColorModeToMapScalars();
123
124 _mapper->SetInputConnection(_transformFilter->GetOutputPort());
125 _actor = vtkActor::New();
126 static_cast<vtkActor*>(_actor)->SetMapper(_mapper);
127 _renderer->AddActor(_actor);
128
129 // Determine the right pre-set properties
130 // Order is: _algorithm, _compositeFilter, create a new one with props
131 // copied from parent
132 auto* vtkProps = dynamic_cast<VtkAlgorithmProperties*>(_algorithm);
133 if (!vtkProps)
134 {
135 vtkProps = dynamic_cast<VtkAlgorithmProperties*>(_compositeFilter);
136
137 // Copy properties from parent or create a new VtkAlgorithmProperties
138 if (!vtkProps)
139 {
140 auto* parentItem =
141 dynamic_cast<VtkVisPipelineItem*>(this->parentItem());
142 while (parentItem)
143 {
144 VtkAlgorithmProperties* parentProps = nullptr;
145 if (dynamic_cast<VtkVisPointSetItem*>(parentItem))
146 {
147 parentProps = dynamic_cast<VtkVisPointSetItem*>(parentItem)
149 }
150 if (parentProps)
151 {
152 vtkProps =
153 new VtkAlgorithmProperties(); // TODO memory leak?
154 vtkProps->SetScalarVisibility(
155 parentProps->GetScalarVisibility());
156 vtkProps->SetTexture(parentProps->GetTexture());
157 vtkProps->SetActiveAttribute(
158 parentProps->GetActiveAttribute());
159 parentItem = nullptr;
160 }
161 else
162 {
163 parentItem = dynamic_cast<VtkVisPipelineItem*>(
165 }
166 }
167
168 // Has no parents
169 if (!vtkProps)
170 {
171 vtkProps = new VtkAlgorithmProperties(); // TODO memory leak?
172 }
173 }
174 }
175 _vtkProps = vtkProps;
176
177 if (vtkProps->GetActiveAttribute().length() == 0)
178 {
179 // Get first scalar and set it to active
180 QStringList arrayNames = this->getScalarArrayNames();
181 if (arrayNames.length() > 0)
182 {
183 vtkProps->SetActiveAttribute(arrayNames[0]);
184 }
185 else
186 {
187 vtkProps->SetActiveAttribute("Solid Color");
188 }
189 }
190 this->setVtkProperties(vtkProps);
191 this->SetActiveAttribute(vtkProps->GetActiveAttribute());
192
193 // Set global backface culling
194 QSettings settings;
195 bool backfaceCulling = settings.value("globalCullBackfaces", 0).toBool();
196 this->setBackfaceCulling(backfaceCulling);
197
198 // Set the correct threshold range
199 if (dynamic_cast<VtkCompositeThresholdFilter*>(this->_compositeFilter))
200 {
201 double range[2];
202 this->GetRangeForActiveAttribute(range);
203 QList<QVariant> thresholdRangeList;
204 thresholdRangeList.push_back(range[0]);
205 thresholdRangeList.push_back(range[1]);
206 dynamic_cast<VtkCompositeFilter*>(this->_compositeFilter)
207 ->SetUserVectorProperty("Range", thresholdRangeList);
208 }
209
210 // Show edges on meshes
211 if (dynamic_cast<MeshLib::VtkMappedMeshSource*>(this->_algorithm))
212 {
213 _vtkProps->GetProperties()->SetEdgeVisibility(1);
214 }
215}
static QVtkDataSetMapper * New()
Create new objects with New() because of VTKs reference counting.
Contains properties for the visualization of objects as VtkVisPipelineItems.
bool GetScalarVisibility() const
Returns the scalar visibility.
vtkTexture * GetTexture()
Returns a texture (if one has been assigned).
vtkProperty * GetProperties() const
Returns the vtk properties.
Is used to combine several filter in one VtkVisPipelineItem. You can use vtk filter and custom filter...
Visualises only parts of meshes that are above/below/within given thresholds. In init() the threshold...
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::_actor, VtkVisPipelineItem::_algorithm, VtkVisPipelineItem::_compositeFilter, _mapper, VtkVisPipelineItem::_renderer, _transformFilter, VtkVisPipelineItem::_vtkProps, VtkAlgorithmProperties::GetActiveAttribute(), VtkAlgorithmProperties::GetProperties(), 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 286 of file VtkVisPointSetItem.cpp.

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

References _activeArrayName, VtkVisPipelineItem::_algorithm, _mapper, _onPointData, VtkVisPipelineItem::_vtkProps, VtkAlgorithmProperties::GetLookupTable(), GetRangeForActiveAttribute(), VtkAlgorithmProperties::SetActiveAttribute(), and VtkAlgorithmProperties::SetLookUpTable().

Referenced by Initialize().

◆ setBackfaceCulling()

void VtkVisPointSetItem::setBackfaceCulling ( bool enable) const
overridevirtual

Enables / disables backface culling.

Reimplemented from VtkVisPipelineItem.

Definition at line 423 of file VtkVisPointSetItem.cpp.

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

References VtkVisPipelineItem::_actor.

Referenced by Initialize().

◆ SetScalarVisibility()

void VtkVisPointSetItem::SetScalarVisibility ( bool on)
protected

Definition at line 217 of file VtkVisPointSetItem.cpp.

218{
220}
virtual void SetScalarVisibility(bool on)
Sets the scalar visibility on this mapper.

References _mapper, and QVtkDataSetMapper::SetScalarVisibility().

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 390 of file VtkVisPointSetItem.cpp.

391{
392 if (this->transformFilter())
393 {
394 auto* transform =
395 static_cast<vtkTransform*>(this->_transformFilter->GetTransform());
396 double* trans = transform->GetPosition();
397 transform->Identity();
398 transform->Scale(x, y, z);
399 transform->Translate(trans[0] / x, trans[1] / y, trans[2] / z);
400 this->transformFilter()->Modified();
401 }
402}
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 404 of file VtkVisPointSetItem.cpp.

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

References _transformFilter, and transformFilter().

◆ setVtkProperties()

void VtkVisPointSetItem::setVtkProperties ( VtkAlgorithmProperties * vtkProps)
protected

Sets pre-set properties on vtkActor and on vtkMapper.

Definition at line 222 of file VtkVisPointSetItem.cpp.

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

419{
420 return _transformFilter;
421}

References _transformFilter.

Referenced by setScale(), and setTranslation().

Member Data Documentation

◆ _activeArrayName

std::string VtkVisPointSetItem::_activeArrayName
protected

Definition at line 82 of file VtkVisPointSetItem.h.

Referenced by GetRangeForActiveAttribute(), and SetActiveAttribute().

◆ _mapper

QVtkDataSetMapper* VtkVisPointSetItem::_mapper
protected

◆ _onPointData

bool VtkVisPointSetItem::_onPointData
protected

Definition at line 81 of file VtkVisPointSetItem.h.

Referenced by GetRangeForActiveAttribute(), and SetActiveAttribute().

◆ _transformFilter

vtkTransformFilter* VtkVisPointSetItem::_transformFilter
protected

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