VTK
vtkActor.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkActor.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 =========================================================================*/
37 #ifndef vtkActor_h
38 #define vtkActor_h
39 
40 #include "vtkRenderingCoreModule.h" // For export macro
41 #include "vtkProp3D.h"
42 
43 class vtkRenderer;
44 class vtkPropCollection;
45 class vtkActorCollection;
46 class vtkTexture;
47 class vtkMapper;
48 class vtkProperty;
49 
51 {
52 public:
54  void PrintSelf(ostream& os, vtkIndent indent);
55 
59  static vtkActor *New();
60 
64  virtual void GetActors(vtkPropCollection *);
65 
67 
68  virtual int RenderOpaqueGeometry(vtkViewport *viewport);
71 
74 
80  virtual void Render(vtkRenderer *, vtkMapper *) {}
81 
83  void ShallowCopy(vtkProp *prop);
84 
89 
91 
99 
104 
106 
111  vtkGetObjectMacro(BackfaceProperty,vtkProperty);
113 
115 
118  virtual void SetTexture(vtkTexture*);
121 
126  virtual void SetMapper(vtkMapper *);
127 
129 
132 
134 
137  void GetBounds(double bounds[6]) {this->vtkProp3D::GetBounds( bounds );}
138  double *GetBounds();
140 
147  virtual void ApplyProperties() {}
148 
150  unsigned long int GetMTime();
151 
156  virtual unsigned long GetRedrawMTime();
157 
162  virtual bool GetSupportsSelection();
163 
164 protected:
167 
168  // is this actor opaque
169  int GetIsOpaque();
170 
175 
176  // Bounds are cached in an actor - the MapperBounds are also cache to
177  // help know when the Bounds need to be recomputed.
178  double MapperBounds[6];
180 
181 private:
182  vtkActor(const vtkActor&); // Not implemented.
183  void operator=(const vtkActor&); // Not implemented.
184 };
185 
186 #endif
vtkActor::GetIsOpaque
int GetIsOpaque()
vtkActor::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkActor::Mapper
vtkMapper * Mapper
Definition: vtkActor.h:174
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:232
vtkActor::GetProperty
vtkProperty * GetProperty()
vtkProp3D
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:43
vtkActor::ShallowCopy
void ShallowCopy(vtkProp *prop)
vtkTimeStamp
record modification and/or execution time
Definition: vtkTimeStamp.h:35
vtkActor::RenderTranslucentPolygonalGeometry
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *viewport)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkActor::SetTexture
virtual void SetTexture(vtkTexture *)
vtkActor::BoundsMTime
vtkTimeStamp BoundsMTime
Definition: vtkActor.h:179
vtkActor::Property
vtkProperty * Property
Definition: vtkActor.h:171
vtkActor::BackfaceProperty
vtkProperty * BackfaceProperty
Definition: vtkActor.h:172
vtkActor::MakeProperty
virtual vtkProperty * MakeProperty()
vtkActor::Texture
vtkTexture * Texture
Definition: vtkActor.h:173
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:34
vtkActor::GetMTime
unsigned long int GetMTime()
vtkTexture
handles properties associated with a texture map
Definition: vtkTexture.h:70
vtkActor::New
static vtkActor * New()
vtkActor::~vtkActor
~vtkActor()
vtkMapper
abstract class specifies interface to map data to graphics primitives
Definition: vtkMapper.h:90
vtkActor::GetBounds
double * GetBounds()
vtkActor
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:51
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkRenderingCoreModule.h
vtkActor::GetRedrawMTime
virtual unsigned long GetRedrawMTime()
vtkActor::GetBounds
void GetBounds(double bounds[6])
Definition: vtkActor.h:137
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:47
vtkActor::SetBackfaceProperty
void SetBackfaceProperty(vtkProperty *lut)
vtkProp
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:50
vtkActor::RenderOpaqueGeometry
virtual int RenderOpaqueGeometry(vtkViewport *viewport)
vtkActor::ApplyProperties
virtual void ApplyProperties()
Definition: vtkActor.h:147
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:64
vtkActor::GetActors
virtual void GetActors(vtkPropCollection *)
vtkActorCollection
a list of actors
Definition: vtkActorCollection.h:36
vtkActor::ReleaseGraphicsResources
void ReleaseGraphicsResources(vtkWindow *)
vtkActor::SetProperty
void SetProperty(vtkProperty *lut)
vtkProperty
represent surface properties of a geometric object
Definition: vtkProperty.h:64
VTKRENDERINGCORE_EXPORT
#define VTKRENDERINGCORE_EXPORT
Definition: vtkRenderingCoreModule.h:15
vtkActor::SetMapper
virtual void SetMapper(vtkMapper *)
vtkActor::vtkActor
vtkActor()
vtkActor::HasTranslucentPolygonalGeometry
virtual int HasTranslucentPolygonalGeometry()
vtkPropCollection
a list of Props
Definition: vtkPropCollection.h:38
vtkActor::GetSupportsSelection
virtual bool GetSupportsSelection()
vtkActor::Render
virtual void Render(vtkRenderer *, vtkMapper *)
Definition: vtkActor.h:80
vtkProp3D.h
vtkProp3D::GetBounds
virtual double * GetBounds()=0