VTK  9.2.5
vtkLODActor.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkLODActor.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
138 #ifndef vtkLODActor_h
139 #define vtkLODActor_h
140 
141 #include "vtkActor.h"
142 #include "vtkRenderingLODModule.h" // For export macro
143 
144 class vtkMapper;
145 class vtkMapperCollection;
147 class vtkPolyDataMapper;
148 class vtkRenderer;
149 class vtkViewport;
150 class vtkWindow;
151 
152 class VTKRENDERINGLOD_EXPORT vtkLODActor : public vtkActor
153 {
154 public:
155  vtkTypeMacro(vtkLODActor, vtkActor);
156  void PrintSelf(ostream& os, vtkIndent indent) override;
157 
163  static vtkLODActor* New();
164 
169  void Render(vtkRenderer*, vtkMapper*) override;
170 
177 
182  void AddLODMapper(vtkMapper* mapper);
183 
185 
192  vtkGetObjectMacro(LowResFilter, vtkPolyDataAlgorithm);
193  vtkGetObjectMacro(MediumResFilter, vtkPolyDataAlgorithm);
195 
197 
200  vtkGetMacro(NumberOfCloudPoints, int);
201  vtkSetMacro(NumberOfCloudPoints, int);
203 
205 
209  vtkGetObjectMacro(LODMappers, vtkMapperCollection);
211 
215  void Modified() override;
216 
220  void ShallowCopy(vtkProp* prop) override;
221 
222 protected:
224  ~vtkLODActor() override;
225 
228 
229  // We can create our own LOD filters. The default is to use a
230  //
235 
238 
239  virtual void CreateOwnLODs();
240  virtual void UpdateOwnLODs();
241  virtual void DeleteOwnLODs();
242 
243 private:
244  vtkLODActor(const vtkLODActor&) = delete;
245  void operator=(const vtkLODActor&) = delete;
246 };
247 
248 #endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:161
a simple class to control print indentation
Definition: vtkIndent.h:119
an actor that supports multiple levels of detail
Definition: vtkLODActor.h:153
static vtkLODActor * New()
Creates a vtkLODActor with the following defaults: origin(0,0,0) position=(0,0,0) scale=(1,...
virtual void SetMediumResFilter(vtkPolyDataAlgorithm *)
You may plug in your own filters to decimate/subsample the input.
void Render(vtkRenderer *, vtkMapper *) override
This causes the actor to be rendered.
virtual void DeleteOwnLODs()
virtual void UpdateOwnLODs()
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this actor.
~vtkLODActor() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void ShallowCopy(vtkProp *prop) override
Shallow copy of an LOD actor.
vtkPolyDataMapper * MediumMapper
Definition: vtkLODActor.h:234
vtkTimeStamp BuildTime
Definition: vtkLODActor.h:236
vtkActor * Device
Definition: vtkLODActor.h:226
vtkMapperCollection * LODMappers
Definition: vtkLODActor.h:227
vtkPolyDataAlgorithm * MediumResFilter
Definition: vtkLODActor.h:232
void AddLODMapper(vtkMapper *mapper)
Add another level of detail.
vtkPolyDataAlgorithm * LowResFilter
Definition: vtkLODActor.h:231
vtkPolyDataMapper * LowMapper
Definition: vtkLODActor.h:233
int NumberOfCloudPoints
Definition: vtkLODActor.h:237
void Modified() override
When this objects gets modified, this method also modifies the object.
virtual void SetLowResFilter(vtkPolyDataAlgorithm *)
You may plug in your own filters to decimate/subsample the input.
virtual void CreateOwnLODs()
an ordered list of mappers
abstract class specifies interface to map data to graphics primitives
Definition: vtkMapper.h:177
Superclass for algorithms that produce only polydata as output.
map vtkPolyData to graphics primitives
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:76
abstract specification for renderers
Definition: vtkRenderer.h:182
record modification and/or execution time
Definition: vtkTimeStamp.h:55
abstract specification for Viewports
Definition: vtkViewport.h:56
window superclass for vtkRenderWindow
Definition: vtkWindow.h:39