VTK
dox
Rendering
Context2D
vtkContext3D.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkContext3D.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
=========================================================================*/
15
27
#ifndef vtkContext3D_h
28
#define vtkContext3D_h
29
30
#include "vtkRenderingContext2DModule.h"
// For export macro
31
#include "
vtkObject.h
"
32
#include "
vtkVector.h
"
// For the vector coordinates.
33
#include "
vtkSmartPointer.h
"
// For SP ivars.
34
35
class
vtkContextDevice3D
;
36
class
vtkPen
;
37
class
vtkBrush
;
38
class
vtkTransform
;
39
40
class
VTKRENDERINGCONTEXT2D_EXPORT
vtkContext3D
:
public
vtkObject
41
{
42
public
:
43
vtkTypeMacro(
vtkContext3D
,
vtkObject
);
44
void
PrintSelf
(ostream &os,
vtkIndent
indent)
override
;
45
49
static
vtkContext3D
*
New
();
50
56
bool
Begin(
vtkContextDevice3D
*device);
57
61
vtkContextDevice3D
* GetDevice();
62
68
bool
End();
69
73
void
DrawLine(
const
vtkVector3f
&start,
const
vtkVector3f
&end);
74
78
void
DrawPoly(
const
float
*
points
,
int
n);
79
83
void
DrawPoint(
const
vtkVector3f
&
point
);
84
88
void
DrawPoints(
const
float
*
points
,
int
n);
89
95
void
DrawPoints(
const
float
*
points
,
int
n,
96
unsigned
char
*colors,
int
nc_comps);
97
101
void
DrawTriangleMesh(
const
float
*mesh,
int
n,
102
const
unsigned
char
*colors,
int
nc);
103
109
void
ApplyPen(
vtkPen
*pen);
110
116
void
ApplyBrush(
vtkBrush
*brush);
117
123
void
SetTransform(
vtkTransform
*transform);
124
128
vtkTransform
* GetTransform();
129
136
void
AppendTransform(
vtkTransform
*transform);
137
139
143
void
PushMatrix();
144
void
PopMatrix();
146
148
155
void
EnableClippingPlane(
int
i,
double
*planeEquation);
156
void
DisableClippingPlane(
int
i);
158
159
protected
:
160
vtkContext3D
();
161
~
vtkContext3D
()
override
;
162
163
vtkSmartPointer<vtkContextDevice3D>
Device
;
// The underlying device
164
vtkSmartPointer<vtkTransform>
Transform
;
// Current transform
165
166
private
:
167
vtkContext3D
(
const
vtkContext3D
&) =
delete
;
168
void
operator=(
const
vtkContext3D
&) =
delete
;
169
};
170
171
#endif // VTKCONTEXT3D_H
vtkBrush
provides a brush that fills shapes drawn by vtkContext2D.
Definition:
vtkBrush.h:40
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkContextDevice3D
Abstract class for drawing 3D primitives.
Definition:
vtkContextDevice3D.h:41
vtkSmartPointer< vtkContextDevice3D >
vtkObject
abstract base class for most VTK objects
Definition:
vtkObject.h:59
vtkVector.h
vtkContext3D::Device
vtkSmartPointer< vtkContextDevice3D > Device
Definition:
vtkContext3D.h:163
vtkTransform
describes linear transformations via a 4x4 matrix
Definition:
vtkTransform.h:60
vtkX3D::points
Definition:
vtkX3D.h:446
vtkX3D::point
Definition:
vtkX3D.h:236
vtkVector3f
Definition:
vtkVector.h:452
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:39
vtkSmartPointer.h
vtkObject::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkObject.h
vtkContext3D
Class for drawing 3D primitives to a graphical context.
Definition:
vtkContext3D.h:40
vtkPen
provides a pen that draws the outlines of shapes drawn by vtkContext2D.
Definition:
vtkPen.h:39
vtkContext3D::Transform
vtkSmartPointer< vtkTransform > Transform
Definition:
vtkContext3D.h:164
Generated by
1.8.16