VTK
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 =========================================================================*/
62 #ifndef vtkLODActor_h
63 #define vtkLODActor_h
64 
65 #include "vtkRenderingLODModule.h" // For export macro
66 #include "vtkActor.h"
67 
68 class vtkMapper;
71 class vtkPolyDataMapper;
72 class vtkRenderer;
73 class vtkViewport;
74 class vtkWindow;
75 
76 class VTKRENDERINGLOD_EXPORT vtkLODActor : public vtkActor
77 {
78 public:
79  vtkTypeMacro(vtkLODActor, vtkActor);
80  void PrintSelf(ostream& os, vtkIndent indent);
81 
87  static vtkLODActor* New();
88 
93  virtual void Render(vtkRenderer *, vtkMapper *);
94 
100 
107 
112  void AddLODMapper(vtkMapper* mapper);
113 
115 
122  vtkGetObjectMacro(LowResFilter, vtkPolyDataAlgorithm);
123  vtkGetObjectMacro(MediumResFilter, vtkPolyDataAlgorithm);
125 
127 
130  vtkGetMacro(NumberOfCloudPoints, int);
131  vtkSetMacro(NumberOfCloudPoints, int);
133 
135 
139  vtkGetObjectMacro(LODMappers, vtkMapperCollection);
141 
145  void Modified();
146 
150  void ShallowCopy(vtkProp *prop);
151 
152 protected:
155 
158 
159  // We can create our own LOD filters. The default is to use a
160  //
165 
168 
169  virtual void CreateOwnLODs();
170  virtual void UpdateOwnLODs();
171  virtual void DeleteOwnLODs();
172 
173 private:
174  vtkLODActor(const vtkLODActor&) VTK_DELETE_FUNCTION;
175  void operator=(const vtkLODActor&) VTK_DELETE_FUNCTION;
176 };
177 
178 #endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:52
a simple class to control print indentation
Definition: vtkIndent.h:40
an actor that supports multiple levels of detail
Definition: vtkLODActor.h:77
void Modified()
When this objects gets modified, this method also modifies the object.
static vtkLODActor * New()
Creates a vtkLODActor with the following defaults: origin(0,0,0) position=(0,0,0) scale=(1,...
virtual void SetMediumResFilter(vtkPolyDataAlgorithm *)
void ReleaseGraphicsResources(vtkWindow *)
Release any graphics resources that are being consumed by this actor.
void ShallowCopy(vtkProp *prop)
Shallow copy of an LOD actor.
virtual void DeleteOwnLODs()
virtual void UpdateOwnLODs()
virtual void Render(vtkRenderer *, vtkMapper *)
This causes the actor to be rendered.
vtkPolyDataMapper * MediumMapper
Definition: vtkLODActor.h:164
vtkTimeStamp BuildTime
Definition: vtkLODActor.h:166
vtkActor * Device
Definition: vtkLODActor.h:156
vtkMapperCollection * LODMappers
Definition: vtkLODActor.h:157
vtkPolyDataAlgorithm * MediumResFilter
Definition: vtkLODActor.h:162
void AddLODMapper(vtkMapper *mapper)
Add another level of detail.
vtkPolyDataAlgorithm * LowResFilter
Definition: vtkLODActor.h:161
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
int RenderOpaqueGeometry(vtkViewport *viewport)
This method is used internally by the rendering process.
vtkPolyDataMapper * LowMapper
Definition: vtkLODActor.h:163
int NumberOfCloudPoints
Definition: vtkLODActor.h:167
virtual void SetLowResFilter(vtkPolyDataAlgorithm *)
You may plug in your own filters to decimate/subsample the input.
virtual void CreateOwnLODs()
a list of mappers
abstract class specifies interface to map data to graphics primitives
Definition: vtkMapper.h:92
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:48
abstract specification for renderers
Definition: vtkRenderer.h:64
record modification and/or execution time
Definition: vtkTimeStamp.h:36
abstract specification for Viewports
Definition: vtkViewport.h:48
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.