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=========================================================================*/
38#ifndef vtkActor_h
39#define vtkActor_h
40
41#include "vtkRenderingCoreModule.h" // For export macro
42#include "vtkProp3D.h"
43
44class vtkRenderer;
47class vtkTexture;
48class vtkMapper;
49class vtkProperty;
50
51class VTKRENDERINGCORE_EXPORT vtkActor : public vtkProp3D
52{
53public:
54 vtkTypeMacro(vtkActor, vtkProp3D);
55 void PrintSelf(ostream& os, vtkIndent indent);
56
62 static vtkActor *New();
63
70
72
75 virtual int RenderOpaqueGeometry(vtkViewport *viewport);
78
83
90 virtual void Render(vtkRenderer *, vtkMapper *) {}
91
95 void ShallowCopy(vtkProp *prop);
96
103
105
115
122
124
131 vtkGetObjectMacro(BackfaceProperty,vtkProperty);
133
135
140 virtual void SetTexture(vtkTexture*);
141 vtkGetObjectMacro(Texture, vtkTexture);
143
150 virtual void SetMapper(vtkMapper *);
151
153
156 vtkGetObjectMacro(Mapper, vtkMapper);
158
163 void GetBounds(double bounds[6]) {this->vtkProp3D::GetBounds( bounds );}
164 double *GetBounds();
165
174 virtual void ApplyProperties() {}
175
180
188
190
193 vtkGetMacro(ForceOpaque, bool);
194 vtkSetMacro(ForceOpaque, bool);
195 vtkBooleanMacro(ForceOpaque, bool);
196 vtkGetMacro(ForceTranslucent, bool);
197 vtkSetMacro(ForceTranslucent, bool);
198 vtkBooleanMacro(ForceTranslucent, bool);
200
207 virtual bool GetSupportsSelection();
208
209protected:
212
213 // is this actor opaque
217
222
223 // Bounds are cached in an actor - the MapperBounds are also cache to
224 // help know when the Bounds need to be recomputed.
225 double MapperBounds[6];
227
228private:
229 vtkActor(const vtkActor&) VTK_DELETE_FUNCTION;
230 void operator=(const vtkActor&) VTK_DELETE_FUNCTION;
231};
232
233#endif
a list of actors
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:52
void SetProperty(vtkProperty *lut)
Set/Get the property object that controls this actors surface properties.
vtkMTimeType GetMTime()
Get the actors mtime plus consider its properties and texture if set.
void ReleaseGraphicsResources(vtkWindow *)
Release any graphics resources that are being consumed by this actor.
virtual void Render(vtkRenderer *, vtkMapper *)
This causes the actor to be rendered.
Definition: vtkActor.h:90
virtual void SetMapper(vtkMapper *)
This is the method that is used to connect an actor to the end of a visualization pipeline,...
double * GetBounds()
Get the bounds for this Prop as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
vtkProperty * GetProperty()
virtual vtkProperty * MakeProperty()
Create a new property suitable for use with this type of Actor.
void GetBounds(double bounds[6])
Get the bounds for this Actor as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
Definition: vtkActor.h:163
vtkProperty * BackfaceProperty
Definition: vtkActor.h:219
void SetBackfaceProperty(vtkProperty *lut)
Set/Get the property object that controls this actors backface surface properties.
virtual void ApplyProperties()
Apply the current properties to all parts that compose this actor.
Definition: vtkActor.h:174
vtkTimeStamp BoundsMTime
Definition: vtkActor.h:226
virtual vtkMTimeType GetRedrawMTime()
Return the mtime of anything that would cause the rendered image to appear differently.
virtual void GetActors(vtkPropCollection *)
For some exporters and other other operations we must be able to collect all the actors or volumes.
bool ForceOpaque
Definition: vtkActor.h:215
vtkTexture * Texture
Definition: vtkActor.h:220
vtkProperty * Property
Definition: vtkActor.h:218
virtual int HasTranslucentPolygonalGeometry()
Does this prop have some translucent polygonal geometry?
int GetIsOpaque()
vtkMapper * Mapper
Definition: vtkActor.h:221
bool ForceTranslucent
Definition: vtkActor.h:216
static vtkActor * New()
Creates an actor with the following defaults: origin(0,0,0) position=(0,0,0) scale=(1,...
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
void ShallowCopy(vtkProp *prop)
Shallow copy of an actor.
virtual void SetTexture(vtkTexture *)
Set/Get the texture object to control rendering texture maps.
virtual bool GetSupportsSelection()
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERI...
virtual int RenderOpaqueGeometry(vtkViewport *viewport)
Support the standard render methods.
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *viewport)
a simple class to control print indentation
Definition: vtkIndent.h:40
abstract class specifies interface to map data to graphics primitives
Definition: vtkMapper.h:92
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:47
virtual double * GetBounds()=0
Get the bounds for this Prop as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
a list of Props
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:48
represent surface properties of a geometric object
Definition: vtkProperty.h:65
abstract specification for renderers
Definition: vtkRenderer.h:64
handles properties associated with a texture map
Definition: vtkTexture.h:71
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.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248