VTK  9.2.6
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=========================================================================*/
58
59#ifndef vtkLODActor_h
60#define vtkLODActor_h
61
62#include "vtkActor.h"
63#include "vtkRenderingLODModule.h" // For export macro
64
65class vtkMapper;
69class vtkRenderer;
70class vtkViewport;
71class vtkWindow;
72
73class VTKRENDERINGLOD_EXPORT vtkLODActor : public vtkActor
74{
75public:
76 vtkTypeMacro(vtkLODActor, vtkActor);
77 void PrintSelf(ostream& os, vtkIndent indent) override;
78
84 static vtkLODActor* New();
85
90 void Render(vtkRenderer*, vtkMapper*) override;
91
98
103 void AddLODMapper(vtkMapper* mapper);
104
106
116
118
121 vtkGetMacro(NumberOfCloudPoints, int);
122 vtkSetMacro(NumberOfCloudPoints, int);
124
126
130 vtkGetObjectMacro(LODMappers, vtkMapperCollection);
132
136 void Modified() override;
137
141 void ShallowCopy(vtkProp* prop) override;
142
143protected:
145 ~vtkLODActor() override;
146
149
150 // We can create our own LOD filters. The default is to use a
151 //
156
159
160 virtual void CreateOwnLODs();
161 virtual void UpdateOwnLODs();
162 virtual void DeleteOwnLODs();
163
164private:
165 vtkLODActor(const vtkLODActor&) = delete;
166 void operator=(const vtkLODActor&) = delete;
167};
168
169#endif
a simple class to control print indentation
Definition vtkIndent.h:40
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
vtkTimeStamp BuildTime
vtkActor * Device
vtkMapperCollection * LODMappers
vtkPolyDataAlgorithm * MediumResFilter
void AddLODMapper(vtkMapper *mapper)
Add another level of detail.
vtkPolyDataAlgorithm * LowResFilter
vtkPolyDataMapper * LowMapper
int NumberOfCloudPoints
static vtkLODActor * New()
Creates a vtkLODActor with the following defaults: origin(0,0,0) position=(0,0,0) scale=(1,...
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:88
Superclass for algorithms that produce only polydata as output.
map vtkPolyData to graphics primitives
abstract specification for renderers
Definition vtkRenderer.h:73
record modification and/or execution time
abstract specification for Viewports
Definition vtkViewport.h:56
window superclass for vtkRenderWindow
Definition vtkWindow.h:39