cosgcanvas.h Source File¶
|
API
|
cosgcanvas.h
96 Viewpoint(const Vec3d& eye, const Vec3d& center, const Vec3d& up): eye(eye), center(center), up(up), valid(true) {}
127 EarthViewpoint(double longitude, double latitude, double altitude, double heading, double pitch, double range)
153 cOsgCanvas(const char *name=nullptr, ViewerStyle viewerStyle=STYLE_GENERIC, osg::Node *scene=nullptr);
213 void setCameraManipulatorType(CameraManipulatorType manipulator) {this->cameraManipulatorType = manipulator;}
Wraps an OpenSceneGraph scene, allowing 3D visualization in graphical user interfaces that support it...
Definition cosgcanvas.h:43
void setViewerStyle(ViewerStyle viewerStyle)
Definition cosgcanvas.h:187
const EarthViewpoint & getEarthViewpoint() const
Definition cosgcanvas.h:302
void setZLimits(double zNear, double zFar)
Definition cosgcanvas.h:253
void setGenericViewpoint(const Viewpoint &viewpoint)
CameraManipulatorType getCameraManipulatorType() const
Definition cosgcanvas.h:218
double getFieldOfViewAngle() const
Definition cosgcanvas.h:228
const Viewpoint & getGenericViewpoint() const
Definition cosgcanvas.h:289
void setEarthViewpoint(const EarthViewpoint &earthViewpoint)
void setFieldOfViewAngle(double fieldOfViewAngle)
Definition cosgcanvas.h:223
virtual void setScene(osg::Node *scene)
void setCameraManipulatorType(CameraManipulatorType manipulator)
Definition cosgcanvas.h:213
bool hasZLimits() const
virtual std::string str() const override
void clearZLimits()
A cObject that keeps track of its owner. It serves as base class for many classes in the OMNeT++ libr...
Definition cownedobject.h:106
CameraManipulatorType
Camera manupulator types.
Definition cosgcanvas.h:60
@ CAM_EARTH
Useful when viewing osgEarth scenes.
Definition cosgcanvas.h:65
@ CAM_TERRAIN
Suitable for flying above an object or terrain.
Definition cosgcanvas.h:62
@ CAM_AUTO
Choose the camera manipulator automatically.
Definition cosgcanvas.h:61
@ CAM_TRACKBALL
Allows unrestricted movement centered around an object.
Definition cosgcanvas.h:64
@ CAM_OVERVIEW
Similar to TERRAIN, but only allows seeing the object from above.
Definition cosgcanvas.h:63
@ STYLE_GENERIC
For generic (non-osgEarth) OSG models.
Definition cosgcanvas.h:50
Defines a viewpoint in 3D space with geographical coordinates, for osgEarth-style viewing.
Definition cosgcanvas.h:111
bool valid
The validity of the data. If false, the other members should not be read.
Definition cosgcanvas.h:116
double altitude
The location of the "focal point".
Definition cosgcanvas.h:114
double range
The distance and angle of the camera.
Definition cosgcanvas.h:115
EarthViewpoint(double longitude, double latitude, double altitude, double heading, double pitch, double range)
Definition cosgcanvas.h:127
bool valid
The validity of the data. If this is false, the vector members should not be read.
Definition cosgcanvas.h:91
Vec3d up
Specifies the direction of the up vector.
Definition cosgcanvas.h:90
Vec3d center
Specifies the position of the reference point.
Definition cosgcanvas.h:89
Vec3d eye
Specifies the position of the eye point.
Definition cosgcanvas.h:88
Generated on for API by