OpenCMISS-Zinc C++ API Documentation
 All Classes Namespaces Files Functions Typedefs Enumerations Enumerator Pages
sceneviewer.hpp
Go to the documentation of this file.
1 
4 /* OpenCMISS-Zinc Library
5 *
6 * This Source Code Form is subject to the terms of the Mozilla Public
7 * License, v. 2.0. If a copy of the MPL was not distributed with this
8 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
9 #ifndef CMZN_SCENEVIEWER_HPP__
10 #define CMZN_SCENEVIEWER_HPP__
11 
12 #include "zinc/sceneviewer.h"
13 #include "zinc/context.hpp"
14 #include "zinc/scene.hpp"
15 #include "zinc/scenefilter.hpp"
16 
17 namespace OpenCMISS
18 {
19 namespace Zinc
20 {
21 
22 class Sceneviewerinput;
23 
31 {
32 protected:
33  cmzn_sceneviewerevent_id id;
34 
35 public:
36 
37  Sceneviewerevent() : id(0)
38  { }
39 
40  // takes ownership of C handle, responsibility for destroying it
41  explicit Sceneviewerevent(cmzn_sceneviewerevent_id in_sceneviewer_event_id) :
42  id(in_sceneviewer_event_id)
43  { }
44 
45  Sceneviewerevent(const Sceneviewerevent& sceneviewerEvent) :
46  id(cmzn_sceneviewerevent_access(sceneviewerEvent.id))
47  { }
48 
53  {
54  CHANGE_FLAG_NONE = CMZN_SCENEVIEWEREVENT_CHANGE_FLAG_NONE,
56  CHANGE_FLAG_REPAINT_REQUIRED = CMZN_SCENEVIEWEREVENT_CHANGE_FLAG_REPAINT_REQUIRED,
58  CHANGE_FLAG_TRANSFORM = CMZN_SCENEVIEWEREVENT_CHANGE_FLAG_TRANSFORM,
60  CHANGE_FLAG_FINAL = CMZN_SCENEVIEWEREVENT_CHANGE_FLAG_FINAL
62  };
63 
68  typedef int ChangeFlags;
69 
70  Sceneviewerevent& operator=(const Sceneviewerevent& sceneviewerEvent)
71  {
72  cmzn_sceneviewerevent_id temp_id = cmzn_sceneviewerevent_access(sceneviewerEvent.id);
73  if (0 != id)
74  {
75  cmzn_sceneviewerevent_destroy(&id);
76  }
77  id = temp_id;
78  return *this;
79  }
80 
82  {
83  if (0 != id)
84  {
85  cmzn_sceneviewerevent_destroy(&id);
86  }
87  }
88 
94  bool isValid() const
95  {
96  return (0 != id);
97  }
98 
104  cmzn_sceneviewerevent_id getId() const
105  {
106  return id;
107  }
108 
119  {
120  return static_cast<ChangeFlag>(cmzn_sceneviewerevent_get_change_flags(id));
121  }
122 
123 };
124 
134 {
135 friend class Sceneviewernotifier;
136 private:
137  Sceneviewercallback(const Sceneviewercallback&); // not implemented
138  Sceneviewercallback& operator=(const Sceneviewercallback&); // not implemented
139 
140  static void C_callback(cmzn_sceneviewerevent_id sceneviewerevent_id, void *callbackVoid)
141  {
142  Sceneviewerevent sceneviewerevent(cmzn_sceneviewerevent_access(sceneviewerevent_id));
143  Sceneviewercallback *callback = reinterpret_cast<Sceneviewercallback *>(callbackVoid);
144  (*callback)(sceneviewerevent);
145  }
146 
147  virtual void operator()(const Sceneviewerevent &sceneviewerevent) = 0;
148 
149 protected:
151  { }
152 
153 public:
154  virtual ~Sceneviewercallback()
155  { }
156 };
157 
164 {
165 protected:
166  cmzn_sceneviewernotifier_id id;
167 
168 public:
169 
170  Sceneviewernotifier() : id(0)
171  { }
172 
173  // takes ownership of C handle, responsibility for destroying it
174  explicit Sceneviewernotifier(cmzn_sceneviewernotifier_id in_sceneviewernotifier_id) :
175  id(in_sceneviewernotifier_id)
176  { }
177 
178  Sceneviewernotifier(const Sceneviewernotifier& sceneviewerNotifier) :
179  id(cmzn_sceneviewernotifier_access(sceneviewerNotifier.id))
180  { }
181 
182  Sceneviewernotifier& operator=(const Sceneviewernotifier& sceneviewerNotifier)
183  {
184  cmzn_sceneviewernotifier_id temp_id = cmzn_sceneviewernotifier_access(sceneviewerNotifier.id);
185  if (0 != id)
186  {
187  cmzn_sceneviewernotifier_destroy(&id);
188  }
189  id = temp_id;
190  return *this;
191  }
192 
194  {
195  if (0 != id)
196  {
197  cmzn_sceneviewernotifier_destroy(&id);
198  }
199  }
200 
206  bool isValid() const
207  {
208  return (0 != id);
209  }
210 
216  cmzn_sceneviewernotifier_id getId() const
217  {
218  return id;
219  }
220 
232  {
233  return cmzn_sceneviewernotifier_set_callback(
234  id, callback.C_callback, static_cast<void*>(&callback));
235  }
236 
244  {
245  return cmzn_sceneviewernotifier_clear_callback(id);
246  }
247 };
248 
262 {
263 protected:
264  cmzn_sceneviewer_id id;
265 
266 public:
267 
280  {
281  BUFFERING_MODE_INVALID = CMZN_SCENEVIEWER_BUFFERING_MODE_INVALID,
283  BUFFERING_MODE_DEFAULT = CMZN_SCENEVIEWER_BUFFERING_MODE_DEFAULT,
286  BUFFERING_MODE_SINGLE = CMZN_SCENEVIEWER_BUFFERING_MODE_SINGLE,
289  BUFFERING_MODE_DOUBLE = CMZN_SCENEVIEWER_BUFFERING_MODE_DOUBLE,
292  BUFFERING_MODE_RENDER_OFFSCREEN_AND_COPY = CMZN_SCENEVIEWER_BUFFERING_MODE_RENDER_OFFSCREEN_AND_COPY,
299  BUFFERING_MODE_RENDER_OFFSCREEN_AND_BLEND = CMZN_SCENEVIEWER_BUFFERING_MODE_RENDER_OFFSCREEN_AND_BLEND
304  };
305 
310  {
311  INTERACT_MODE_INVALID = CMZN_SCENEVIEWER_INTERACT_MODE_INVALID,
313  INTERACT_MODE_STANDARD = CMZN_SCENEVIEWER_INTERACT_MODE_STANDARD,
318  INTERACT_MODE_2D = CMZN_SCENEVIEWER_INTERACT_MODE_2D
323  };
324 
329  {
330  PROJECTION_MODE_INVALID = CMZN_SCENEVIEWER_PROJECTION_MODE_INVALID,
332  PROJECTION_MODE_PARALLEL = CMZN_SCENEVIEWER_PROJECTION_MODE_PARALLEL,
334  PROJECTION_MODE_PERSPECTIVE = CMZN_SCENEVIEWER_PROJECTION_MODE_PERSPECTIVE
336  };
337 
343  {
344  STEREO_MODE_INVALID = CMZN_SCENEVIEWER_STEREO_MODE_INVALID,
346  STEREO_MODE_DEFAULT = CMZN_SCENEVIEWER_STEREO_MODE_DEFAULT,
348  STEREO_MODE_MONO = CMZN_SCENEVIEWER_STEREO_MODE_MONO,
350  STEREO_MODE_STEREO = CMZN_SCENEVIEWER_STEREO_MODE_STEREO
352  };
353 
358  {
359  TRANSPARENCY_MODE_INVALID = CMZN_SCENEVIEWER_TRANSPARENCY_MODE_INVALID,
361  TRANSPARENCY_MODE_FAST = CMZN_SCENEVIEWER_TRANSPARENCY_MODE_FAST,
366  TRANSPARENCY_MODE_SLOW = CMZN_SCENEVIEWER_TRANSPARENCY_MODE_SLOW,
374  TRANSPARENCY_MODE_ORDER_INDEPENDENT = CMZN_SCENEVIEWER_TRANSPARENCY_MODE_ORDER_INDEPENDENT
382  };
383 
389  {
390  VIEWPORT_MODE_INVALID = CMZN_SCENEVIEWER_VIEWPORT_MODE_INVALID,
392  VIEWPORT_MODE_ABSOLUTE = CMZN_SCENEVIEWER_VIEWPORT_MODE_ABSOLUTE,
395  VIEWPORT_MODE_RELATIVE = CMZN_SCENEVIEWER_VIEWPORT_MODE_RELATIVE,
398  VIEWPORT_MODE_DISTORTING_RELATIVE = CMZN_SCENEVIEWER_VIEWPORT_MODE_DISTORTING_RELATIVE
401  };
402 
403  Sceneviewer() : id(0)
404  { }
405 
406  // takes ownership of C-style region reference
407  explicit Sceneviewer(cmzn_sceneviewer_id in_sceneviewer_id) :
408  id(in_sceneviewer_id)
409  { }
410 
411  Sceneviewer(const Sceneviewer& sceneviewermodule) :
412  id(cmzn_sceneviewer_access(sceneviewermodule.id))
413  { }
414 
415  Sceneviewer& operator=(const Sceneviewer& sceneviewer)
416  {
417  cmzn_sceneviewer_id temp_id = cmzn_sceneviewer_access(sceneviewer.id);
418  if (0 != id)
419  {
420  cmzn_sceneviewer_destroy(&id);
421  }
422  id = temp_id;
423  return *this;
424  }
425 
426  ~Sceneviewer()
427  {
428  if (0 != id)
429  {
430  cmzn_sceneviewer_destroy(&id);
431  }
432  }
433 
439  bool isValid() const
440  {
441  return (0 != id);
442  }
443 
449  cmzn_sceneviewer_id getId() const
450  {
451  return id;
452  }
453 
464  {
465  return cmzn_sceneviewer_begin_change(id);
466  }
467 
478  int endChange()
479  {
480  return cmzn_sceneviewer_end_change(id);
481  }
482 
487  {
488  return cmzn_sceneviewer_render_scene(id);
489  }
490 
499  int setScene(const Scene& scene)
500  {
501  return cmzn_sceneviewer_set_scene(id, scene.getId());
502  }
503 
510  {
511  return Scene(cmzn_sceneviewer_get_scene(id));
512  }
513 
522  int setScenefilter(const Scenefilter& scenefilter)
523  {
524  return cmzn_sceneviewer_set_scenefilter(id, scenefilter.getId());
525  }
526 
533  {
534  return Scenefilter(cmzn_sceneviewer_get_scenefilter(id));
535  }
536 
540  int setViewportSize(int width, int height)
541  {
542  return cmzn_sceneviewer_set_viewport_size(id, width, height);
543  }
544 
552 
560  inline int processSceneviewerinput(const Sceneviewerinput& input);
561 
569  {
570  return cmzn_sceneviewer_get_antialias_sampling(id);
571  }
572 
580  int setAntialiasSampling(int numberOfSamples)
581  {
582  return cmzn_sceneviewer_set_antialias_sampling(id, numberOfSamples);
583  }
584 
591  int getEyePosition(double *eyeValuesOut3)
592  {
593  return cmzn_sceneviewer_get_eye_position(id, eyeValuesOut3);
594  }
595 
602  int setEyePosition(double const *eyeValuesIn3)
603  {
604  return cmzn_sceneviewer_set_eye_position(id, eyeValuesIn3);
605  }
606 
615  {
616  return static_cast<InteractMode>(cmzn_sceneviewer_get_interact_mode(id));
617  }
618 
626  int setInteractMode(InteractMode interactMode)
627  {
628  return cmzn_sceneviewer_set_interact_mode(id,
629  static_cast<cmzn_sceneviewer_interact_mode>(interactMode));
630  }
631 
638  int getLookatPosition(double *lookatValuesOut3)
639  {
640  return cmzn_sceneviewer_get_lookat_position(id, lookatValuesOut3);
641  }
642 
649  int setLookatPosition(double const *lookatValuesIn3)
650  {
651  return cmzn_sceneviewer_set_lookat_position(id, lookatValuesIn3);
652  }
653 
661  {
662  return cmzn_sceneviewer_get_perturb_lines_flag(id);
663  }
664 
673  int setPerturbLinesFlag(bool value)
674  {
675  return cmzn_sceneviewer_set_perturb_lines_flag(id, value);
676  }
677 
684  {
685  return static_cast<ProjectionMode>(cmzn_sceneviewer_get_projection_mode(id));
686  }
687 
694  int setProjectionMode(ProjectionMode projectionMode)
695  {
696  return cmzn_sceneviewer_set_projection_mode(id,
697  static_cast<cmzn_sceneviewer_projection_mode>(projectionMode));
698  }
699 
707  {
708  return cmzn_sceneviewer_get_translation_rate(id);
709  }
710 
718  int setTranslationRate(double translationRate)
719  {
720  return cmzn_sceneviewer_set_translation_rate(id, translationRate);
721  }
722 
729  double getTumbleRate()
730  {
731  return cmzn_sceneviewer_get_tumble_rate(id);
732  }
733 
741  int setTumbleRate(double tumbleRate)
742  {
743  return cmzn_sceneviewer_set_tumble_rate(id, tumbleRate);
744  }
745 
752  double getZoomRate()
753  {
754  return cmzn_sceneviewer_get_zoom_rate(id);
755  }
756 
764  int setZoomRate(double zoomRate)
765  {
766  return cmzn_sceneviewer_set_zoom_rate(id, zoomRate);
767  }
768 
775  int getUpVector(double *upVectorValuesOut3)
776  {
777  return cmzn_sceneviewer_get_up_vector(id, upVectorValuesOut3);
778  }
779 
787  int setUpVector(double const *upVectorValuesIn3)
788  {
789  return cmzn_sceneviewer_set_up_vector(id, upVectorValuesIn3);
790  }
791 
804  int getLookatParameters(double *eyeValuesOut3, double *lookatValuesOut3, double *upVectorValuesOut3)
805  {
806  return cmzn_sceneviewer_get_lookat_parameters(id,
807  eyeValuesOut3, lookatValuesOut3, upVectorValuesOut3);
808  }
809 
825  int setLookatParametersNonSkew(double const *eyeValuesIn3, double const *lookatValuesIn3, double const *upVectorValuesIn3)
826  {
827  return cmzn_sceneviewer_set_lookat_parameters_non_skew(id,
828  eyeValuesIn3, lookatValuesIn3, upVectorValuesIn3);
829  }
830 
834  int getViewingVolume(double *left,double *right,double *bottom,double *top,
835  double *near_plane, double *far_plane)
836  {
837  return cmzn_sceneviewer_get_viewing_volume(id, left, right, bottom, top,
838  near_plane, far_plane);
839  }
840 
851  int setViewingVolume(double left, double right, double bottom, double top,
852  double near_plane, double far_plane)
853  {
854  return cmzn_sceneviewer_set_viewing_volume(id, left, right, bottom, top,
855  near_plane, far_plane);
856  }
857 
867  int setBackgroundColourComponentRGB(double red, double green, double blue)
868  {
869  return cmzn_sceneviewer_set_background_colour_component_rgb(id, red, green, blue);
870  }
871 
880  int setBackgroundColourRGB(const double *valuesIn3)
881  {
882  return cmzn_sceneviewer_set_background_colour_rgb(id, valuesIn3);
883  }
884 
892  int getBackgroundColourRGB(double *valuesOut3)
893  {
894  return cmzn_sceneviewer_get_background_colour_rgb(id, valuesOut3);
895  }
896 
903  int viewAll()
904  {
905  return cmzn_sceneviewer_view_all(id);
906  }
907 
925  {
926  return static_cast<TransparencyMode>(cmzn_sceneviewer_get_transparency_mode(id));
927  }
928 
941  int setTransparencyMode(TransparencyMode transparencyMode)
942  {
943  return cmzn_sceneviewer_set_transparency_mode(id,
944  static_cast<cmzn_sceneviewer_transparency_mode>(transparencyMode));
945  }
946 
957  {
958  return cmzn_sceneviewer_get_transparency_layers(id);
959  }
960 
972  int setTransparencyLayers(int layers)
973  {
974  return cmzn_sceneviewer_set_transparency_layers(id, layers);
975  }
976 
984  double getViewAngle()
985  {
986  return cmzn_sceneviewer_get_view_angle(id);
987  }
988 
997  int setViewAngle(double viewAngle)
998  {
999  return cmzn_sceneviewer_set_view_angle(id, viewAngle);
1000  }
1001 
1009  {
1010  return static_cast<ViewportMode>(cmzn_sceneviewer_get_viewport_mode(id));
1011  }
1012 
1019  int setViewportMode(ViewportMode viewportMode)
1020  {
1021  return cmzn_sceneviewer_set_viewport_mode(id,
1022  static_cast<cmzn_sceneviewer_viewport_mode>(viewportMode));
1023  }
1024 
1032  {
1033  return cmzn_sceneviewer_get_far_clipping_plane(id);
1034  }
1035 
1043  {
1044  return cmzn_sceneviewer_get_near_clipping_plane(id);
1045  }
1046 
1053  int setFarClippingPlane(double farClippingPlane)
1054  {
1055  return cmzn_sceneviewer_set_far_clipping_plane(id, farClippingPlane);
1056  }
1057 
1064  int setNearClippingPlane(double nearClippingPlane)
1065  {
1066  return cmzn_sceneviewer_set_near_clipping_plane(id, nearClippingPlane);
1067  }
1068 
1075  {
1076  return Sceneviewernotifier(cmzn_sceneviewer_create_sceneviewernotifier(id));
1077  }
1078 
1079 };
1080 
1087 {
1088 protected:
1089  cmzn_sceneviewermodule_id id;
1090 
1091 public:
1092 
1093  Sceneviewermodule() : id(0)
1094  { }
1095 
1096  // takes ownership of C-style region reference
1097  Sceneviewermodule(cmzn_sceneviewermodule_id in_sceneviewermodule_id) :
1098  id(in_sceneviewermodule_id)
1099  { }
1100 
1101  Sceneviewermodule(const Sceneviewermodule& sceneviewermodule) :
1102  id(cmzn_sceneviewermodule_access(sceneviewermodule.id))
1103  { }
1104 
1105  Sceneviewermodule& operator=(const Sceneviewermodule& sceneviewermodule)
1106  {
1107  cmzn_sceneviewermodule_id temp_id = cmzn_sceneviewermodule_access(sceneviewermodule.id);
1108  if (0 != id)
1109  {
1110  cmzn_sceneviewermodule_destroy(&id);
1111  }
1112  id = temp_id;
1113  return *this;
1114  }
1115 
1117  {
1118  if (0 != id)
1119  {
1120  cmzn_sceneviewermodule_destroy(&id);
1121  }
1122  }
1123 
1129  bool isValid() const
1130  {
1131  return (0 != id);
1132  }
1133 
1139  cmzn_sceneviewermodule_id getId() const
1140  {
1141  return id;
1142  }
1143 
1144  Sceneviewer createSceneviewer(Sceneviewer::BufferingMode buffering_mode, Sceneviewer::StereoMode stereo_mode)
1145  {
1146  return Sceneviewer(cmzn_sceneviewermodule_create_sceneviewer(id,
1147  static_cast<cmzn_sceneviewer_buffering_mode>(buffering_mode),
1148  static_cast<cmzn_sceneviewer_stereo_mode>(stereo_mode)));
1149  }
1150 
1151 };
1152 
1154 {
1155  return Sceneviewermodule(cmzn_context_get_sceneviewermodule(id));
1156 }
1157 
1159 {
1160  return Sceneviewermodule(cmzn_scene_get_sceneviewermodule(id));
1161 }
1162 
1163 } // namespace Zinc
1164 }
1165 
1166 #endif
Scenefilter getScenefilter()
Definition: sceneviewer.hpp:532
cmzn_sceneviewer_id getId() const
Definition: sceneviewer.hpp:449
bool isValid() const
Definition: sceneviewer.hpp:94
int setFarClippingPlane(double farClippingPlane)
Definition: sceneviewer.hpp:1053
double getViewAngle()
Definition: sceneviewer.hpp:984
int setScene(const Scene &scene)
Definition: sceneviewer.hpp:499
cmzn_scenefilter_id getId() const
Definition: scenefilter.hpp:86
int setViewportMode(ViewportMode viewportMode)
Definition: sceneviewer.hpp:1019
int ChangeFlags
Definition: sceneviewer.hpp:68
TransparencyMode getTransparencyMode()
Definition: sceneviewer.hpp:924
int setAntialiasSampling(int numberOfSamples)
Definition: sceneviewer.hpp:580
int renderScene()
Definition: sceneviewer.hpp:486
Definition: sceneviewer.hpp:348
int endChange()
Definition: sceneviewer.hpp:478
Container/manager for graphics visualising a region.
Definition: scene.hpp:34
TransparencyMode
Definition: sceneviewer.hpp:357
Sceneviewerinput createSceneviewerinput()
Definition: sceneviewerinput.hpp:194
int setTumbleRate(double tumbleRate)
Definition: sceneviewer.hpp:741
bool isValid() const
Definition: sceneviewer.hpp:439
int setProjectionMode(ProjectionMode projectionMode)
Definition: sceneviewer.hpp:694
ViewportMode
Definition: sceneviewer.hpp:388
int setTransparencyMode(TransparencyMode transparencyMode)
Definition: sceneviewer.hpp:941
int processSceneviewerinput(const Sceneviewerinput &input)
Definition: sceneviewerinput.hpp:199
bool isValid() const
Definition: sceneviewer.hpp:1129
int setViewportSize(int width, int height)
Definition: sceneviewer.hpp:540
int getLookatParameters(double *eyeValuesOut3, double *lookatValuesOut3, double *upVectorValuesOut3)
Definition: sceneviewer.hpp:804
int viewAll()
Definition: sceneviewer.hpp:903
int setInteractMode(InteractMode interactMode)
Definition: sceneviewer.hpp:626
double getNearClippingPlane()
Definition: sceneviewer.hpp:1042
int setViewAngle(double viewAngle)
Definition: sceneviewer.hpp:997
int clearCallback()
Definition: sceneviewer.hpp:243
cmzn_sceneviewerevent_id getId() const
Definition: sceneviewer.hpp:104
int setBackgroundColourComponentRGB(double red, double green, double blue)
Definition: sceneviewer.hpp:867
BufferingMode
Definition: sceneviewer.hpp:279
ViewportMode getViewportMode()
Definition: sceneviewer.hpp:1008
Module object for creating and managing scene viewers.
Definition: sceneviewer.hpp:1086
int beginChange()
Definition: sceneviewer.hpp:463
StereoMode
Definition: sceneviewer.hpp:342
Sceneviewermodule getSceneviewermodule()
Definition: sceneviewer.hpp:1153
Sceneviewernotifier createSceneviewernotifier()
Definition: sceneviewer.hpp:1074
cmzn_scene_id getId() const
Definition: scene.hpp:86
int setTransparencyLayers(int layers)
Definition: sceneviewer.hpp:972
int getAntialiasSampling()
Definition: sceneviewer.hpp:568
int setViewingVolume(double left, double right, double bottom, double top, double near_plane, double far_plane)
Definition: sceneviewer.hpp:851
int setPerturbLinesFlag(bool value)
Definition: sceneviewer.hpp:673
ProjectionMode getProjectionMode()
Definition: sceneviewer.hpp:683
int setLookatParametersNonSkew(double const *eyeValuesIn3, double const *lookatValuesIn3, double const *upVectorValuesIn3)
Definition: sceneviewer.hpp:825
Definition: sceneviewer.hpp:318
ProjectionMode
Definition: sceneviewer.hpp:328
cmzn_sceneviewernotifier_id getId() const
Definition: sceneviewer.hpp:216
int getViewingVolume(double *left, double *right, double *bottom, double *top, double *near_plane, double *far_plane)
Definition: sceneviewer.hpp:834
Sceneviewermodule getSceneviewermodule()
Definition: sceneviewer.hpp:1158
ChangeFlag
Definition: sceneviewer.hpp:52
Describes a mouse event for processing by the sceneviewer.
Definition: sceneviewerinput.hpp:27
int setZoomRate(double zoomRate)
Definition: sceneviewer.hpp:764
Scene getScene()
Definition: sceneviewer.hpp:509
int setCallback(Sceneviewercallback &callback)
Definition: sceneviewer.hpp:231
int setTranslationRate(double translationRate)
Definition: sceneviewer.hpp:718
double getTumbleRate()
Definition: sceneviewer.hpp:729
int setNearClippingPlane(double nearClippingPlane)
Definition: sceneviewer.hpp:1064
Manages individual user notification of changes with a scene viewer.
Definition: sceneviewer.hpp:163
int getTransparencyLayers()
Definition: sceneviewer.hpp:956
double getTranslationRate()
Definition: sceneviewer.hpp:706
int setLookatPosition(double const *lookatValuesIn3)
Definition: sceneviewer.hpp:649
cmzn_sceneviewermodule_id getId() const
Definition: sceneviewer.hpp:1139
ChangeFlags getChangeFlags() const
Definition: sceneviewer.hpp:118
int getUpVector(double *upVectorValuesOut3)
Definition: sceneviewer.hpp:775
bool isValid() const
Definition: sceneviewer.hpp:206
InteractMode
Definition: sceneviewer.hpp:309
double getZoomRate()
Definition: sceneviewer.hpp:752
int setUpVector(double const *upVectorValuesIn3)
Definition: sceneviewer.hpp:787
int getLookatPosition(double *lookatValuesOut3)
Definition: sceneviewer.hpp:638
Scene filters determines which graphics are drawn.
Definition: scenefilter.hpp:33
Information about changes to fields and other objects in the scene viewer.
Definition: sceneviewer.hpp:30
double getFarClippingPlane()
Definition: sceneviewer.hpp:1031
The Zinc sceneviewer is responsible for rendering the graphical Scene.
Definition: sceneviewer.hpp:261
bool getPerturbLinesFlag()
Definition: sceneviewer.hpp:660
int setBackgroundColourRGB(const double *valuesIn3)
Definition: sceneviewer.hpp:880
Base class functor for Sceneviewer notifier callbacks:
Definition: sceneviewer.hpp:133
int getBackgroundColourRGB(double *valuesOut3)
Definition: sceneviewer.hpp:892
InteractMode getInteractMode()
Definition: sceneviewer.hpp:614
int setScenefilter(const Scenefilter &scenefilter)
Definition: sceneviewer.hpp:522
int getEyePosition(double *eyeValuesOut3)
Definition: sceneviewer.hpp:591
int setEyePosition(double const *eyeValuesIn3)
Definition: sceneviewer.hpp:602