blob: 06c687a249c0ca9b242895a4ee0ad3fd6688b898 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
// File Graphic3d_Plotter.cxx
// Created Lundi 21 avril 1997
// Author JLF, CAL
//-Copyright MatraDatavision 1997
//-Version
//-Design Declaration des variables specifiques aux plotters
//-Warning
//-References
//-Language C++ 2.0
//-Declarations
// for the class
#include <Graphic3d_Plotter.ixx>
//-Aliases
//-Global data definitions
//-Constructors
Graphic3d_Plotter::Graphic3d_Plotter ():
MyPlottingState (Standard_False) {
}
//-Destructors
void Graphic3d_Plotter::Destroy () {
}
//-Methods, in order
Standard_Boolean Graphic3d_Plotter::BeginPlot (const Handle(Graphic3d_DataStructureManager)& aProjector) {
if (MyPlottingState)
Graphic3d_PlotterDefinitionError::Raise
("Graphic3d_Plotter::BeginPlot\n");
MyPlottingState = Standard_True;
Graphic3d_PlotterDefinitionError::Raise
("Graphic3d_Plotter::BeginPlot\n");
return MyPlottingState;
}
void Graphic3d_Plotter::EndPlot () {
if (! MyPlottingState)
Graphic3d_PlotterDefinitionError::Raise
("Graphic3d_Plotter::EndPlot\n");
MyPlottingState = Standard_False;
Graphic3d_PlotterDefinitionError::Raise
("Graphic3d_Plotter::EndPlot\n");
}
Standard_Boolean Graphic3d_Plotter::PlottingState () const {
return (MyPlottingState);
}
|