VTK  9.5.2
vtkQuadricLODActor.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
59
60#ifndef vtkQuadricLODActor_h
61#define vtkQuadricLODActor_h
62
63#include "vtkActor.h"
64#include "vtkRenderingLODModule.h" // For export macro
65
66VTK_ABI_NAMESPACE_BEGIN
69class vtkCamera;
70class vtkPolyData;
71
72class VTKRENDERINGLOD_EXPORT vtkQuadricLODActor : public vtkActor
73{
74public:
79
81
85 void PrintSelf(ostream& os, vtkIndent indent) override;
87
89
98
100
107 vtkSetMacro(Static, vtkTypeBool);
108 vtkGetMacro(Static, vtkTypeBool);
109 vtkBooleanMacro(Static, vtkTypeBool);
111
123
125
138 vtkSetClampMacro(DataConfiguration, int, UNKNOWN, XYZVOLUME);
139 vtkGetMacro(DataConfiguration, int);
149
151
158 vtkSetClampMacro(CollapseDimensionRatio, double, 0.0, 1.0);
159 vtkGetMacro(CollapseDimensionRatio, double);
161
163
169 vtkGetObjectMacro(LODFilter, vtkQuadricClustering);
171
173 {
176 };
177
179
183 vtkSetClampMacro(PropType, int, FOLLOWER, ACTOR);
184 vtkGetMacro(PropType, int);
188
190
195 vtkGetObjectMacro(Camera, vtkCamera);
197
203 void Render(vtkRenderer*, vtkMapper*) override;
204
211
215 void ShallowCopy(vtkProp* prop) override;
216
217protected:
220
221 // Renders the LOD
224
225 // Keep track of the requested interactive frame rate
227
228 // Support various strategies
230
231 // Specify whether the mapper's should be set in to Static mode.
233
234 // The dimension of the data
237
238 // Control whether this is a follower or regular actor
241
242 // Specify to defer construction of the LOD.
244
245 // Keep track of building
247
248private:
249 vtkQuadricLODActor(const vtkQuadricLODActor&) = delete;
250 void operator=(const vtkQuadricLODActor&) = delete;
251};
252
253VTK_ABI_NAMESPACE_END
254#endif
represents an object (geometry & properties) in a rendered scene
Definition vtkActor.h:151
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this actor.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void Render(vtkRenderer *, vtkMapper *)
This causes the actor to be rendered.
Definition vtkActor.h:192
static vtkActor * New()
Creates an actor with the following defaults: origin(0,0,0) position=(0,0,0) scale=(1,...
void ShallowCopy(vtkProp *prop) override
Shallow copy of an actor.
a virtual camera for 3D rendering
Definition vtkCamera.h:151
a simple class to control print indentation
Definition vtkIndent.h:108
abstract class specifies interface to map data to graphics primitives
Definition vtkMapper.h:98
map vtkPolyData to graphics primitives
concrete dataset represents vertices, lines, polygons, and triangle strips
abstract superclass for all actors, volumes and annotations
Definition vtkProp.h:63
reduce the number of triangles in a mesh
a specific level-of-detail strategy using the quadric clustering decimation algorithm
abstract specification for renderers
record modification and/or execution time
window superclass for vtkRenderWindow
Definition vtkWindow.h:45
int vtkTypeBool
Definition vtkABI.h:64
void SetPropTypeToActor()
Indicate that this actor is actually a follower.
void SetDataConfigurationToXYZVolume()
Force the binning of the quadric clustering according to application knowledge relative to the dimens...
vtkPolyDataMapper * LODMapper
double CachedInteractiveFrameRate
vtkTimeStamp BuildTime
void SetDataConfigurationToZLine()
Force the binning of the quadric clustering according to application knowledge relative to the dimens...
void SetDataConfigurationToYLine()
Force the binning of the quadric clustering according to application knowledge relative to the dimens...
int PropType
vtkQuadricLODActor()
void SetPropTypeToFollower()
Indicate that this actor is actually a follower.
void SetLODFilter(vtkQuadricClustering *lodFilter)
This class will create a vtkQuadricClustering algorithm automatically.
virtual void SetDataConfiguration(int)
Force the binning of the quadric clustering according to application knowledge relative to the dimens...
void SetDataConfigurationToXYPlane()
Force the binning of the quadric clustering according to application knowledge relative to the dimens...
virtual void SetPropType(int)
Indicate that this actor is actually a follower.
void SetCamera(vtkCamera *)
Set/Get the camera to follow.
vtkTypeBool Static
vtkCamera * Camera
int DataConfiguration
double CollapseDimensionRatio
~vtkQuadricLODActor() override
void SetDataConfigurationToXLine()
Force the binning of the quadric clustering according to application knowledge relative to the dimens...
void SetDataConfigurationToYZPlane()
Force the binning of the quadric clustering according to application knowledge relative to the dimens...
vtkTypeBool DeferLODConstruction
void SetDataConfigurationToXZPlane()
Force the binning of the quadric clustering according to application knowledge relative to the dimens...
void SetDataConfigurationToUnknown()
Force the binning of the quadric clustering according to application knowledge relative to the dimens...
DataConfigurationEnum
@ XYZVOLUME
vtkQuadricClustering * LODFilter
vtkActor * LODActor