VTK
vtkProperty2D.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkProperty2D.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=========================================================================*/
29#ifndef vtkProperty2D_h
30#define vtkProperty2D_h
31
32#include "vtkRenderingCoreModule.h" // For export macro
33#include "vtkObject.h"
34
35class vtkViewport;
36
37#define VTK_BACKGROUND_LOCATION 0
38#define VTK_FOREGROUND_LOCATION 1
39
40class VTKRENDERINGCORE_EXPORT vtkProperty2D : public vtkObject
41{
42public:
43 vtkTypeMacro(vtkProperty2D,vtkObject);
44 void PrintSelf(ostream& os, vtkIndent indent);
45
50 static vtkProperty2D *New();
51
56
58
61 vtkSetVector3Macro(Color, double);
62 vtkGetVector3Macro(Color, double);
64
66
69 vtkGetMacro(Opacity, double);
70 vtkSetMacro(Opacity, double);
72
74
78 vtkSetClampMacro(PointSize,float,0,VTK_FLOAT_MAX);
79 vtkGetMacro(PointSize,float);
81
83
87 vtkSetClampMacro(LineWidth,float,0,VTK_FLOAT_MAX);
88 vtkGetMacro(LineWidth,float);
90
92
97 vtkSetMacro(LineStipplePattern,int);
98 vtkGetMacro(LineStipplePattern,int);
100
102
107 vtkSetClampMacro(LineStippleRepeatFactor,int,1,VTK_INT_MAX);
108 vtkGetMacro(LineStippleRepeatFactor,int);
110
112
121 vtkSetClampMacro( DisplayLocation, int,
123 vtkGetMacro( DisplayLocation, int );
125 {this->DisplayLocation = VTK_BACKGROUND_LOCATION;};
127 {this->DisplayLocation = VTK_FOREGROUND_LOCATION;};
129
133 virtual void Render (vtkViewport* vtkNotUsed(viewport)) {}
134
135protected:
138
139 double Color[3];
140 double Opacity;
146
147private:
148 vtkProperty2D(const vtkProperty2D&) VTK_DELETE_FUNCTION;
149 void operator=(const vtkProperty2D&) VTK_DELETE_FUNCTION;
150};
151
152#endif
a simple class to control print indentation
Definition: vtkIndent.h:40
abstract base class for most VTK objects
Definition: vtkObject.h:60
represent surface properties of a 2D image
Definition: vtkProperty2D.h:41
int LineStippleRepeatFactor
void DeepCopy(vtkProperty2D *p)
Assign one property to another.
void SetDisplayLocationToForeground()
static vtkProperty2D * New()
Creates a vtkProperty2D with the following default values: Opacity 1, Color (1,1,1)
void SetDisplayLocationToBackground()
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual void Render(vtkViewport *vtkNotUsed(viewport))
Have the device specific subclass render this property.
abstract specification for Viewports
Definition: vtkViewport.h:48
@ Color
Definition: vtkX3D.h:46
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
#define VTK_FOREGROUND_LOCATION
Definition: vtkProperty2D.h:38
#define VTK_BACKGROUND_LOCATION
Definition: vtkProperty2D.h:37
#define VTK_INT_MAX
Definition: vtkType.h:153
#define VTK_FLOAT_MAX
Definition: vtkType.h:161