MCPcopy Create free account
hub / github.com/Kitware/VTK / GetGL2PSOptions

Method GetGL2PSOptions

IO/ExportGL2PS/vtkGL2PSExporter.cxx:48–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48int vtkGL2PSExporter::GetGL2PSOptions()
49{
50 GLint options = GL2PS_NONE;
51 if (this->Compress == 1)
52 {
53 options = options | GL2PS_COMPRESS;
54 }
55 if (this->DrawBackground == 1)
56 {
57 options = options | GL2PS_DRAW_BACKGROUND;
58 }
59 if (this->SimpleLineOffset == 1)
60 {
61 options = options | GL2PS_SIMPLE_LINE_OFFSET;
62 }
63 if (this->Silent == 1)
64 {
65 options = options | GL2PS_SILENT;
66 }
67 if (this->BestRoot == 1)
68 {
69 options = options | GL2PS_BEST_ROOT;
70 }
71 if (this->Text == 0)
72 {
73 options = options | GL2PS_NO_TEXT;
74 }
75 if (this->Landscape == 1)
76 {
77 options = options | GL2PS_LANDSCAPE;
78 }
79 if (this->PS3Shading == 0)
80 {
81 options = options | GL2PS_NO_PS3_SHADING;
82 }
83 if (this->OcclusionCull == 1)
84 {
85 options = options | GL2PS_OCCLUSION_CULL;
86 }
87 return static_cast<int>(options);
88}
89
90int vtkGL2PSExporter::GetGL2PSSort()
91{

Callers 1

WriteDataMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected