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 =========================================================================*/
28 #ifndef vtkProperty2D_h
29 #define vtkProperty2D_h
30 
31 #include "vtkRenderingCoreModule.h" // For export macro
32 #include "vtkObject.h"
33 
34 class vtkViewport;
35 
36 #define VTK_BACKGROUND_LOCATION 0
37 #define VTK_FOREGROUND_LOCATION 1
38 
40 {
41 public:
43  void PrintSelf(ostream& os, vtkIndent indent);
44 
47  static vtkProperty2D *New();
48 
51 
53 
57 
59 
60  vtkGetMacro(Opacity, double);
61  vtkSetMacro(Opacity, double);
63 
65 
67  vtkSetClampMacro(PointSize,float,0,VTK_FLOAT_MAX);
68  vtkGetMacro(PointSize,float);
70 
72 
74  vtkSetClampMacro(LineWidth,float,0,VTK_FLOAT_MAX);
75  vtkGetMacro(LineWidth,float);
77 
79 
82  vtkSetMacro(LineStipplePattern,int);
83  vtkGetMacro(LineStipplePattern,int);
85 
87 
90  vtkSetClampMacro(LineStippleRepeatFactor,int,1,VTK_INT_MAX);
91  vtkGetMacro(LineStippleRepeatFactor,int);
93 
95 
101  vtkSetClampMacro( DisplayLocation, int,
103  vtkGetMacro( DisplayLocation, int );
105  {this->DisplayLocation = VTK_BACKGROUND_LOCATION;};
107  {this->DisplayLocation = VTK_FOREGROUND_LOCATION;};
109 
110 //BTX
112 
113  virtual void Render (vtkViewport* vtkNotUsed(viewport)) {}
114 //ETX
116 
117 protected:
120 
121  double Color[3];
122  double Opacity;
123  float PointSize;
124  float LineWidth;
128 
129 private:
130  vtkProperty2D(const vtkProperty2D&); // Not implemented.
131  void operator=(const vtkProperty2D&); // Not implemented.
132 };
133 
134 #endif
vtkProperty2D::Opacity
double Opacity
Definition: vtkProperty2D.h:122
vtkProperty2D::~vtkProperty2D
~vtkProperty2D()
VTK_INT_MAX
#define VTK_INT_MAX
Definition: vtkType.h:132
vtkProperty2D::DeepCopy
void DeepCopy(vtkProperty2D *p)
vtkSetVector3Macro
#define vtkSetVector3Macro(name, type)
Definition: vtkSetGet.h:287
vtkProperty2D::LineStippleRepeatFactor
int LineStippleRepeatFactor
Definition: vtkProperty2D.h:126
vtkProperty2D::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkX3D::Color
@ Color
Definition: vtkX3D.h:46
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkObject
abstract base class for most VTK objects
Definition: vtkObject.h:62
vtkProperty2D::New
static vtkProperty2D * New()
vtkProperty2D::PointSize
float PointSize
Definition: vtkProperty2D.h:123
vtkSetClampMacro
#define vtkSetClampMacro(name, type, min, max)
Definition: vtkSetGet.h:143
vtkNotUsed
#define vtkNotUsed(x)
Definition: vtkSetGet.h:557
vtkProperty2D::DisplayLocation
int DisplayLocation
Definition: vtkProperty2D.h:127
vtkGetVector3Macro
#define vtkGetVector3Macro(name, type)
Definition: vtkSetGet.h:304
vtkProperty2D::Render
virtual void Render(vtkViewport *vtkNotUsed(viewport))
Definition: vtkProperty2D.h:113
vtkProperty2D::LineStipplePattern
int LineStipplePattern
Definition: vtkProperty2D.h:125
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkRenderingCoreModule.h
VTK_FLOAT_MAX
#define VTK_FLOAT_MAX
Definition: vtkType.h:140
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkProperty2D::SetDisplayLocationToForeground
void SetDisplayLocationToForeground()
Definition: vtkProperty2D.h:106
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:47
vtkObject.h
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkProperty2D
represent surface properties of a 2D image
Definition: vtkProperty2D.h:40
vtkProperty2D::vtkProperty2D
vtkProperty2D()
vtkProperty2D::LineWidth
float LineWidth
Definition: vtkProperty2D.h:124
vtkgl::p
GLfloat GLfloat p
Definition: vtkgl.h:15717
VTKRENDERINGCORE_EXPORT
#define VTKRENDERINGCORE_EXPORT
Definition: vtkRenderingCoreModule.h:15
vtkProperty2D::SetDisplayLocationToBackground
void SetDisplayLocationToBackground()
Definition: vtkProperty2D.h:104
VTK_FOREGROUND_LOCATION
#define VTK_FOREGROUND_LOCATION
Definition: vtkProperty2D.h:37
VTK_BACKGROUND_LOCATION
#define VTK_BACKGROUND_LOCATION
Definition: vtkProperty2D.h:36