Developer Documentation
|
Signals | |
void | updated () |
This signal is emitted when the configuration has been changed. | |
void | drawModeChanged (int _viewerId) |
This signal is emitted when the drawmode changed. | |
void | getPickMode (std::string &_mode) |
void | setPickMode (const std::string &_mode) |
void | getActionMode (Viewer::ActionMode &_am) |
void | setActionMode (const Viewer::ActionMode _am) |
Public Member Functions | |
ViewerProperties (int _id) | |
std::string | pickMode () |
get active pick mode More... | |
void | pickMode (const std::string &_name) |
set the pickMode More... | |
Viewer::ActionMode | actionMode () |
get the action mode More... | |
void | actionMode (const Viewer::ActionMode _am) |
set active action mode More... | |
Draw Mode States | |
ACG::SceneGraph::DrawModes::DrawMode | currentDrawMode_ |
set draw mode (No test if this mode is available!) More... | |
void | drawMode (ACG::SceneGraph::DrawModes::DrawMode _mode) |
set draw mode (No test if this mode is available!) More... | |
ACG::SceneGraph::DrawModes::DrawMode | drawMode () |
get current draw mode More... | |
Snapshot settings | |
QString | snapshotName_ |
QString | snapshotFileType_ |
int | snapshotCounter_ |
void | snapshotBaseFileName (const QString &_fname) |
void | snapshotFileType (const QString &_type) |
void | snapshotCounter (const int _counter) |
QString | snapshotFileType () |
QString | snapshotName () |
int | snapshotCounter () |
Mouse Wheel Settings | |
double | wZoomFactor_ |
Zoom factor when using mouse wheel. More... | |
double | wZoomFactorShift_ |
Zoom factor when using mouse wheel. More... | |
bool | wInvert_ |
Zoom factor when using mouse wheel. More... | |
double | wheelZoomFactor () |
Zoom factor when using mouse wheel. More... | |
double | wheelZoomFactorShift () |
Zoom factor when using mouse wheel and pressing shift. More... | |
void | wheelZoomFactor (double _factor) |
Set zoom factor when using mouse wheel. More... | |
void | wheelZoomFactorShift (double _factor) |
Set zoom factor when using mouse wheel and pressing shift. More... | |
bool | wheelInvert () |
Invert mouse wheel direction? More... | |
void | wheelInvert (bool _invert) |
Invert mouse wheel direction. More... | |
Rendering Settings | |
bool | CCWFront_ |
Pointer to the glState of the Viewer. More... | |
ACG::Vec4f | backgroundColor_ |
Pointer to the glState of the Viewer. More... | |
int | locked_ |
Pointer to the glState of the Viewer. More... | |
bool | backFaceCulling_ |
Pointer to the glState of the Viewer. More... | |
bool | twoSidedLighting_ |
Pointer to the glState of the Viewer. More... | |
bool | multisampling_ |
Pointer to the glState of the Viewer. More... | |
bool | mipmapping_ |
Pointer to the glState of the Viewer. More... | |
bool | animation_ |
Pointer to the glState of the Viewer. More... | |
ACG::GLState * | glState_ |
Pointer to the glState of the Viewer. More... | |
ViewObjectMarker * | objectMarker_ |
Pointer to the glState of the Viewer. More... | |
int | currentViewingDirection_ |
Pointer to the glState of the Viewer. More... | |
bool | rotationLocked_ |
Pointer to the glState of the Viewer. More... | |
ACG::GLState & | glState () |
Get the glState of the Viewer. More... | |
const ACG::GLState & | glState () const |
Pointer to the glState of the Viewer. More... | |
void | setglState (ACG::GLState *_glState) |
Pointer to the glState of the Viewer. More... | |
int | currentViewingDirection () |
Pointer to the glState of the Viewer. More... | |
void | currentViewingDirection (int _dir) |
Pointer to the glState of the Viewer. More... | |
bool | rotationLocked () |
Pointer to the glState of the Viewer. More... | |
void | rotationLocked (bool _lock) |
Pointer to the glState of the Viewer. More... | |
bool | isCCWFront () |
void | ccwFront () |
Set counter clockwise orientation as front. More... | |
void | cwFront () |
Set clockwise orientation as front. More... | |
ACG::Vec4f | backgroundColor () |
Get current background color. More... | |
QRgb | backgroundColorRgb () |
Get current background color. More... | |
QColor | backgroundQColor () |
Get current background color. More... | |
void | backgroundColor (ACG::Vec4f _color) |
void | backgroundColor (QRgb _color) |
void | backgroundColor (QColor _color) |
void | lockUpdate () |
void | unLockUpdate () |
Unlock display locked by updateLock(). More... | |
bool | updateLocked () |
bool | backFaceCulling () |
Get current state of backface culling. More... | |
void | backFaceCulling (bool _state) |
Enable or disable backface culling. More... | |
void | twoSidedLighting (bool _state) |
set 2-sided lighting on/off More... | |
bool | twoSidedLighting () |
is 2-sided lighing enabled? More... | |
void | multisampling (bool _state) |
set multisampling on/off More... | |
bool | multisampling () |
is multisampling enabled? More... | |
void | mipmapping (bool _state) |
set mipmapping on/off More... | |
bool | mipmapping () |
is mipmapping enabled? More... | |
void | animation (bool _state) |
set 2-sided lighting on/off More... | |
bool | animation () |
is 2-sided lighing enabled? More... | |
void | objectMarker (ViewObjectMarker *_marker) |
set object marker for viewer More... | |
ViewObjectMarker * | objectMarker () |
current object marker More... | |
Projection controls and information | |
double | orthoWidth_ |
Width of the gl scene in orthogonal mode ( defaults to 2.0 ) More... | |
double | nearPlane_ |
Distance to near Plane. More... | |
double | farPlane_ |
distance to far Plane More... | |
ACG::Vec3d | sceneCenter_ |
Current scene center (rendering center) More... | |
double | sceneRadius_ |
Radius of the current scene. More... | |
ACG::Vec3d | trackballCenter_ |
Virtual trackball center (rotation center when using mouse) More... | |
double | trackballRadius_ |
trackball radius (rotation sphere when using mouse) More... | |
float | device_pixel_ratio_ = 1.f |
by default the device pixel ratio is 1 More... | |
double | orthoWidth () |
Get width of the gl scene in orthogonal projection mode (defaults to 2.0) More... | |
void | orthoWidth (double _width) |
Set the width of the gl scene in orthogonal projection mode. More... | |
double | nearPlane () |
Return distance to near Plane. More... | |
void | setPlanes (double _near, double _far) |
Set near and far plane at the same time. More... | |
double | farPlane () |
Return distance to far Plane. More... | |
ACG::Vec3d | sceneCenter () |
Get current scene center (rendering center) More... | |
void | sceneCenter (ACG::Vec3d _center) |
Set current scene center (rendering center) More... | |
double | sceneRadius () |
Get radius of the current scene. More... | |
void | sceneRadius (double _radius) |
Set radius of the current scene. More... | |
ACG::Vec3d | trackballCenter () |
Get virtual trackball center (rotation center when using mouse) More... | |
void | trackballCenter (ACG::Vec3d _center) |
Set virtual trackball center (rotation center when using mouse) More... | |
double | trackballRadius () |
Get trackball radius (rotation sphere when using mouse) More... | |
void | trackballRadius (double _radius) |
Set trackball radius (rotation sphere when using mouse) More... | |
float | getDevicePixelRatio () const |
get device pixel ratio More... | |
void | setDevicePixelRatio (float dpr) |
set device pixel ratio More... | |
QPoint | adjustForDevicePixelRatio (QPoint const &point) const |
adjust point for DPR More... | |
QPointF | adjustForDevicePixelRatio (QPointF const &point) const |
Width of the gl scene in orthogonal mode ( defaults to 2.0 ) More... | |
Stereo Settings | |
bool | stereo_ |
Flag if stereo should be enabled for the current viewer. More... | |
CursorPainter * | cursorPainter_ |
Flag if stereo should be enabled for the current viewer. More... | |
ACG::Vec3d | cursorPoint3D_ |
Flag if stereo should be enabled for the current viewer. More... | |
bool | cursorPositionValid_ |
Flag if stereo should be enabled for the current viewer. More... | |
void | stereo (bool _stereo) |
Flag if stereo should be enabled for the current viewer. More... | |
bool | stereo () |
Flag if stereo should be enabled for the current viewer. More... | |
CursorPainter * | cursorPainter () |
Flag if stereo should be enabled for the current viewer. More... | |
void | cursorPainter (CursorPainter *_painter) |
Flag if stereo should be enabled for the current viewer. More... | |
ACG::Vec3d | cursorPoint3D () |
Flag if stereo should be enabled for the current viewer. More... | |
void | cursorPoint3D (ACG::Vec3d _pos) |
Flag if stereo should be enabled for the current viewer. More... | |
bool | cursorPositionValid () |
Flag if stereo should be enabled for the current viewer. More... | |
void | cursorPositionValid (bool _valid) |
Flag if stereo should be enabled for the current viewer. More... | |
Viewer id handling | |
int | viewerId_ |
Stores the id of the viewer this property belongs to. More... | |
QString | settingsSection_ |
String for the Settings storage. More... | |
int | viewerId () |
Get the id of the viewer this viewerproperties belongs to. More... | |
void | viewerId (int _id) |
Set the id of the viewer this viewerproperties belongs to. More... | |
Definition at line 107 of file ViewerProperties.hh.
|
explicit |
Definition at line 53 of file ViewerProperties.cc.
Viewer::ViewerProperties::~ViewerProperties | ( | ) |
Definition at line 89 of file ViewerProperties.cc.
Viewer::ActionMode Viewer::ViewerProperties::actionMode | ( | ) |
get the action mode
Definition at line 116 of file ViewerProperties.cc.
void Viewer::ViewerProperties::actionMode | ( | const Viewer::ActionMode | _am | ) |
set active action mode
Definition at line 122 of file ViewerProperties.cc.
QPoint Viewer::ViewerProperties::adjustForDevicePixelRatio | ( | QPoint const & | point | ) | const |
adjust point for DPR
Definition at line 403 of file ViewerProperties.cc.
QPointF Viewer::ViewerProperties::adjustForDevicePixelRatio | ( | QPointF const & | point | ) | const |
Width of the gl scene in orthogonal mode ( defaults to 2.0 )
Definition at line 410 of file ViewerProperties.cc.
|
slot |
is 2-sided lighing enabled?
Definition at line 314 of file ViewerProperties.cc.
|
slot |
set 2-sided lighting on/off
Definition at line 309 of file ViewerProperties.cc.
|
slot |
Get current state of backface culling.
Definition at line 274 of file ViewerProperties.cc.
|
slot |
Enable or disable backface culling.
Definition at line 278 of file ViewerProperties.cc.
|
slot |
Get current background color.
Definition at line 215 of file ViewerProperties.cc.
|
slot |
Set background color.
Definition at line 237 of file ViewerProperties.cc.
|
slot |
Set background color.
Definition at line 250 of file ViewerProperties.cc.
|
slot |
Set background color.
Definition at line 241 of file ViewerProperties.cc.
|
slot |
Get current background color.
Definition at line 219 of file ViewerProperties.cc.
|
slot |
Get current background color.
Definition at line 228 of file ViewerProperties.cc.
|
slot |
Set counter clockwise orientation as front.
Definition at line 205 of file ViewerProperties.cc.
int Viewer::ViewerProperties::currentViewingDirection | ( | ) |
Pointer to the glState of the Viewer.
Definition at line 126 of file ViewerProperties.cc.
void Viewer::ViewerProperties::currentViewingDirection | ( | int | _dir | ) |
Pointer to the glState of the Viewer.
Definition at line 130 of file ViewerProperties.cc.
CursorPainter * Viewer::ViewerProperties::cursorPainter | ( | ) |
Flag if stereo should be enabled for the current viewer.
Definition at line 427 of file ViewerProperties.cc.
void Viewer::ViewerProperties::cursorPainter | ( | CursorPainter * | _painter | ) |
Flag if stereo should be enabled for the current viewer.
Definition at line 431 of file ViewerProperties.cc.
ACG::Vec3d Viewer::ViewerProperties::cursorPoint3D | ( | ) |
Flag if stereo should be enabled for the current viewer.
Definition at line 435 of file ViewerProperties.cc.
void Viewer::ViewerProperties::cursorPoint3D | ( | ACG::Vec3d | _pos | ) |
Flag if stereo should be enabled for the current viewer.
Definition at line 439 of file ViewerProperties.cc.
bool Viewer::ViewerProperties::cursorPositionValid | ( | ) |
Flag if stereo should be enabled for the current viewer.
Definition at line 443 of file ViewerProperties.cc.
void Viewer::ViewerProperties::cursorPositionValid | ( | bool | _valid | ) |
Flag if stereo should be enabled for the current viewer.
Definition at line 447 of file ViewerProperties.cc.
|
slot |
Set clockwise orientation as front.
Definition at line 210 of file ViewerProperties.cc.
ACG::SceneGraph::DrawModes::DrawMode Viewer::ViewerProperties::drawMode | ( | ) |
get current draw mode
Definition at line 157 of file ViewerProperties.cc.
void Viewer::ViewerProperties::drawMode | ( | ACG::SceneGraph::DrawModes::DrawMode | _mode | ) |
set draw mode (No test if this mode is available!)
Definition at line 151 of file ViewerProperties.cc.
double Viewer::ViewerProperties::farPlane | ( | ) |
Return distance to far Plane.
Definition at line 358 of file ViewerProperties.cc.
float Viewer::ViewerProperties::getDevicePixelRatio | ( | ) | const |
get device pixel ratio
Definition at line 398 of file ViewerProperties.cc.
ACG::GLState & Viewer::ViewerProperties::glState | ( | ) |
Get the glState of the Viewer.
Definition at line 318 of file ViewerProperties.cc.
const ACG::GLState & Viewer::ViewerProperties::glState | ( | ) | const |
Pointer to the glState of the Viewer.
Definition at line 322 of file ViewerProperties.cc.
|
slot |
true if counter clockwise orientation should be used to define front facing orientation.
Definition at line 201 of file ViewerProperties.cc.
|
slot |
Lock update of display. If locked (isUpdateLocked()) then all calls to updateDisplayList() and updateGL() will have no effect! This is true until the display is unlockUpdate()'ed.
Definition at line 258 of file ViewerProperties.cc.
|
slot |
is mipmapping enabled?
Definition at line 305 of file ViewerProperties.cc.
|
slot |
set mipmapping on/off
Definition at line 301 of file ViewerProperties.cc.
|
slot |
is multisampling enabled?
Definition at line 297 of file ViewerProperties.cc.
|
slot |
set multisampling on/off
Definition at line 292 of file ViewerProperties.cc.
double Viewer::ViewerProperties::nearPlane | ( | ) |
Return distance to near Plane.
Definition at line 348 of file ViewerProperties.cc.
|
slot |
current object marker
Definition at line 335 of file ViewerProperties.cc.
|
slot |
set object marker for viewer
Definition at line 330 of file ViewerProperties.cc.
double Viewer::ViewerProperties::orthoWidth | ( | ) |
Get width of the gl scene in orthogonal projection mode (defaults to 2.0)
Definition at line 339 of file ViewerProperties.cc.
void Viewer::ViewerProperties::orthoWidth | ( | double | _width | ) |
Set the width of the gl scene in orthogonal projection mode.
Definition at line 343 of file ViewerProperties.cc.
std::string Viewer::ViewerProperties::pickMode | ( | ) |
get active pick mode
Definition at line 105 of file ViewerProperties.cc.
void Viewer::ViewerProperties::pickMode | ( | const std::string & | _name | ) |
set the pickMode
Definition at line 112 of file ViewerProperties.cc.
bool Viewer::ViewerProperties::rotationLocked | ( | ) |
Pointer to the glState of the Viewer.
Definition at line 134 of file ViewerProperties.cc.
void Viewer::ViewerProperties::rotationLocked | ( | bool | _lock | ) |
Pointer to the glState of the Viewer.
Definition at line 138 of file ViewerProperties.cc.
ACG::Vec3d Viewer::ViewerProperties::sceneCenter | ( | ) |
Get current scene center (rendering center)
Definition at line 362 of file ViewerProperties.cc.
void Viewer::ViewerProperties::sceneCenter | ( | ACG::Vec3d | _center | ) |
Set current scene center (rendering center)
Definition at line 366 of file ViewerProperties.cc.
double Viewer::ViewerProperties::sceneRadius | ( | ) |
Get radius of the current scene.
Definition at line 372 of file ViewerProperties.cc.
void Viewer::ViewerProperties::sceneRadius | ( | double | _radius | ) |
Set radius of the current scene.
Definition at line 376 of file ViewerProperties.cc.
void Viewer::ViewerProperties::setDevicePixelRatio | ( | float | dpr | ) |
set device pixel ratio
Definition at line 401 of file ViewerProperties.cc.
void Viewer::ViewerProperties::setglState | ( | ACG::GLState * | _glState | ) |
Pointer to the glState of the Viewer.
Definition at line 326 of file ViewerProperties.cc.
void Viewer::ViewerProperties::setPlanes | ( | double | _near, |
double | _far | ||
) |
Set near and far plane at the same time.
Definition at line 352 of file ViewerProperties.cc.
|
slot |
Set the base file name and reset the counter for snapshots.
The current snapshot counter will be added in front of the last "." in the filename.
Note: Calling snapshotBaseFileName() will always reset the snapshot counter to 0.
Definition at line 96 of file ViewerProperties.cc.
|
slot |
Get the counter for the current snapshot and increases the counter
Definition at line 173 of file ViewerProperties.cc.
|
slot |
Set the start index for the snapshot counter
Definition at line 161 of file ViewerProperties.cc.
|
slot |
Get the file type for the current snapshot
Definition at line 165 of file ViewerProperties.cc.
|
slot |
Set the file type for snapshots. defaults to png"
Definition at line 101 of file ViewerProperties.cc.
|
slot |
Get the name for the current snapshot
Definition at line 169 of file ViewerProperties.cc.
bool Viewer::ViewerProperties::stereo | ( | ) |
Flag if stereo should be enabled for the current viewer.
Definition at line 423 of file ViewerProperties.cc.
void Viewer::ViewerProperties::stereo | ( | bool | _stereo | ) |
Flag if stereo should be enabled for the current viewer.
Definition at line 418 of file ViewerProperties.cc.
ACG::Vec3d Viewer::ViewerProperties::trackballCenter | ( | ) |
Get virtual trackball center (rotation center when using mouse)
Definition at line 381 of file ViewerProperties.cc.
void Viewer::ViewerProperties::trackballCenter | ( | ACG::Vec3d | _center | ) |
Set virtual trackball center (rotation center when using mouse)
Definition at line 385 of file ViewerProperties.cc.
double Viewer::ViewerProperties::trackballRadius | ( | ) |
Get trackball radius (rotation sphere when using mouse)
Definition at line 390 of file ViewerProperties.cc.
void Viewer::ViewerProperties::trackballRadius | ( | double | _radius | ) |
Set trackball radius (rotation sphere when using mouse)
Definition at line 394 of file ViewerProperties.cc.
|
slot |
is 2-sided lighing enabled?
Definition at line 288 of file ViewerProperties.cc.
|
slot |
set 2-sided lighting on/off
Definition at line 283 of file ViewerProperties.cc.
|
slot |
Unlock display locked by updateLock().
Definition at line 262 of file ViewerProperties.cc.
|
slot |
Are updateDisplayList() and updateGL() locked? (c.f. lockUpdate())
Definition at line 270 of file ViewerProperties.cc.
int Viewer::ViewerProperties::viewerId | ( | ) |
Get the id of the viewer this viewerproperties belongs to.
Definition at line 142 of file ViewerProperties.cc.
void Viewer::ViewerProperties::viewerId | ( | int | _id | ) |
Set the id of the viewer this viewerproperties belongs to.
Definition at line 146 of file ViewerProperties.cc.
|
slot |
Invert mouse wheel direction?
Definition at line 193 of file ViewerProperties.cc.
|
slot |
Invert mouse wheel direction.
Definition at line 197 of file ViewerProperties.cc.
|
slot |
Zoom factor when using mouse wheel.
Definition at line 177 of file ViewerProperties.cc.
|
slot |
Set zoom factor when using mouse wheel.
Definition at line 185 of file ViewerProperties.cc.
|
slot |
Zoom factor when using mouse wheel and pressing shift.
Definition at line 181 of file ViewerProperties.cc.
|
slot |
Set zoom factor when using mouse wheel and pressing shift.
Definition at line 189 of file ViewerProperties.cc.
|
private |
Pointer to the glState of the Viewer.
Definition at line 345 of file ViewerProperties.hh.
|
private |
Pointer to the glState of the Viewer.
Definition at line 297 of file ViewerProperties.hh.
|
private |
Pointer to the glState of the Viewer.
Definition at line 263 of file ViewerProperties.hh.
|
private |
Pointer to the glState of the Viewer.
Definition at line 234 of file ViewerProperties.hh.
|
private |
set draw mode (No test if this mode is available!)
Definition at line 129 of file ViewerProperties.hh.
|
private |
Pointer to the glState of the Viewer.
Definition at line 381 of file ViewerProperties.hh.
|
private |
Flag if stereo should be enabled for the current viewer.
Definition at line 528 of file ViewerProperties.hh.
|
private |
Flag if stereo should be enabled for the current viewer.
Definition at line 531 of file ViewerProperties.hh.
|
private |
Flag if stereo should be enabled for the current viewer.
Definition at line 534 of file ViewerProperties.hh.
|
private |
by default the device pixel ratio is 1
Definition at line 484 of file ViewerProperties.hh.
|
private |
distance to far Plane
Definition at line 469 of file ViewerProperties.hh.
|
private |
Pointer to the glState of the Viewer.
Definition at line 359 of file ViewerProperties.hh.
|
private |
Pointer to the glState of the Viewer.
Definition at line 284 of file ViewerProperties.hh.
|
private |
Pointer to the glState of the Viewer.
Definition at line 333 of file ViewerProperties.hh.
|
private |
Pointer to the glState of the Viewer.
Definition at line 321 of file ViewerProperties.hh.
|
private |
Distance to near Plane.
Definition at line 466 of file ViewerProperties.hh.
|
private |
Pointer to the glState of the Viewer.
Definition at line 371 of file ViewerProperties.hh.
|
private |
Width of the gl scene in orthogonal mode ( defaults to 2.0 )
Definition at line 463 of file ViewerProperties.hh.
|
private |
Pointer to the glState of the Viewer.
Definition at line 391 of file ViewerProperties.hh.
|
private |
Current scene center (rendering center)
Definition at line 472 of file ViewerProperties.hh.
|
private |
Radius of the current scene.
Definition at line 475 of file ViewerProperties.hh.
|
private |
String for the Settings storage.
Definition at line 589 of file ViewerProperties.hh.
|
private |
Set the base file name and reset the counter for snapshots.
The current snapshot counter will be added in front of the last "." in the filename.
Note: Calling snapshotBaseFileName() will always reset the snapshot counter to 0.
Definition at line 167 of file ViewerProperties.hh.
|
private |
Set the base file name and reset the counter for snapshots.
The current snapshot counter will be added in front of the last "." in the filename.
Note: Calling snapshotBaseFileName() will always reset the snapshot counter to 0.
Definition at line 166 of file ViewerProperties.hh.
|
private |
Set the base file name and reset the counter for snapshots.
The current snapshot counter will be added in front of the last "." in the filename.
Note: Calling snapshotBaseFileName() will always reset the snapshot counter to 0.
Definition at line 165 of file ViewerProperties.hh.
|
private |
Flag if stereo should be enabled for the current viewer.
Definition at line 503 of file ViewerProperties.hh.
|
private |
Virtual trackball center (rotation center when using mouse)
Definition at line 478 of file ViewerProperties.hh.
|
private |
trackball radius (rotation sphere when using mouse)
Definition at line 481 of file ViewerProperties.hh.
|
private |
Pointer to the glState of the Viewer.
Definition at line 309 of file ViewerProperties.hh.
|
private |
Stores the id of the viewer this property belongs to.
Definition at line 586 of file ViewerProperties.hh.
|
private |
Zoom factor when using mouse wheel.
Definition at line 203 of file ViewerProperties.hh.
|
private |
Zoom factor when using mouse wheel.
Definition at line 199 of file ViewerProperties.hh.
|
private |
Zoom factor when using mouse wheel.
Definition at line 201 of file ViewerProperties.hh.