Viewer::ViewerProperties Class Reference

Collaboration diagram for Viewer::ViewerProperties:
Collaboration graph
[legend]

List of all members.

Signals

void updated ()
 This signal is emitted when the configuration has been 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

std::string pickMode ()
 get active pick mode
void pickMode (const std::string _name)
 set the pickMode
Viewer::ActionMode actionMode ()
 get the action mode
void actionMode (const Viewer::ActionMode _am)
 set active action mode

Draw Mode States



ACG::SceneGraph::DrawModes::DrawMode currentDrawMode_
void drawMode (ACG::SceneGraph::DrawModes::DrawMode _mode)
 set draw mode (No test if this mode is available!)
ACG::SceneGraph::DrawModes::DrawMode drawMode ()
 get current draw mode

Snapshot settings



QString snapshotName_
int snapshotCounter_
void snapshotBaseFileName (const QString &_fname)
QString snapshotName ()
int snapshotCounter ()

Mouse Wheel Settings



double wZoomFactor_
double wZoomFactorShift_
double wheelZoomFactor ()
 Zoom factor when using mousewheel.
double wheelZoomFactorShift ()
 Zoom factor when using mousewheel and pressing shift.
void wheelZoomFactor (double _factor)
 Set zoom factor when using mousewheel.
void wheelZoomFactorShift (double _factor)
 Set zoom factor when using mousewheel and pressing shift.

Rendering Settings



bool CCWFront_
ACG::Vec4f backgroundColor_
bool renderPicking_
ACG::SceneGraph::PickTarget pickRendererMode_
int locked_
bool backFaceCulling_
bool twoSidedLighting_
bool multisampling_
bool animation_
ACG::GLStateglState_
 Pointer to the glState of the Viewer.
ViewObjectMarkerobjectMarker_
int currentViewingDirection_
ACG::GLStateglState ()
 Get the glState of the Viewer.
void setglState (ACG::GLState *_glState)
int currentViewingDirection ()
void currentViewingDirection (int _dir)
bool isCCWFront ()
void ccwFront ()
 Set counter clockwise orientation as front.
void cwFront ()
 Set clockwise orientation as front.
ACG::Vec4f backgroundColor ()
 Get current background color.
QRgb backgroundColorRgb ()
 Get current background color.
void backgroundColor (ACG::Vec4f _color)
void backgroundColor (QRgb _color)
bool renderPicking ()
 Render picking or not.
ACG::SceneGraph::PickTarget renderPickingMode ()
 Mode used for the picking renderer.
void renderPickin (bool _mode)
void renderPicking (bool _renderPicking, ACG::SceneGraph::PickTarget _mode)
void lockUpdate ()
void unLockUpdate ()
 Unlock display locked by updateLock().
bool updateLocked ()
bool backFaceCulling ()
 Get current state of backface culling.
void backFaceCulling (bool _state)
 Enable or disable backface culling.
void twoSidedLighting (bool _state)
 set 2-sided lighting on/off
bool twoSidedLighting ()
 is 2-sided lighing enabled?
void multisampling (bool _state)
 set multisampling on/off
bool multisampling ()
 is multisampling enabled?
void animation (bool _state)
 set 2-sided lighting on/off
bool animation ()
 is 2-sided lighing enabled?
void objectMarker (ViewObjectMarker *_marker)
 set object marker for viewer
ViewObjectMarkerobjectMarker ()
 current object marker

Detailed Description

Definition at line 89 of file ViewerProperties.hh.


Member Function Documentation

void Viewer::ViewerProperties::backgroundColor ( QRgb  _color  )  [inline, slot]

Set background color.

Definition at line 225 of file ViewerProperties.hh.

void Viewer::ViewerProperties::backgroundColor ( ACG::Vec4f  _color  )  [inline, slot]

Set background color.

Definition at line 221 of file ViewerProperties.hh.

bool Viewer::ViewerProperties::isCCWFront (  )  [inline, slot]

true if counter clockwise orientation should be used to define front facing orientation.

Definition at line 193 of file ViewerProperties.hh.

Referenced by glViewer::applyProperties().

void Viewer::ViewerProperties::lockUpdate (  )  [inline, 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 275 of file ViewerProperties.hh.

Referenced by glViewer::initializeGL(), glViewer::paintGL(), Core::resetScenegraph(), and glViewer::viewAll().

void Viewer::ViewerProperties::renderPicking ( bool  _renderPicking,
ACG::SceneGraph::PickTarget  _mode 
) [inline, slot]

Use this function to switch the viewer to visualize picking. When you set this function to true the renderer will render the picking elements rather then the scene

Definition at line 251 of file ViewerProperties.hh.

void Viewer::ViewerProperties::snapshotBaseFileName ( const QString &  _fname  )  [slot]

Set the base file name and reset the counter for snapshots.

The image file format is determined from the file name extension, the QImageIO formats are supported (e.g. ".ppm" [raw], ".png").

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 85 of file ViewerProperties.cc.

Referenced by Core::Core(), CoreWidget::slotSnapshot(), CoreWidget::slotSnapshotName(), and Core::snapshotBaseFileName().

int Viewer::ViewerProperties::snapshotCounter (  )  [inline, slot]

Get the counter for the current snapshot and increases the counter

Definition at line 138 of file ViewerProperties.hh.

Referenced by CoreWidget::slotSnapshot(), and glViewer::snapshot().

QString Viewer::ViewerProperties::snapshotName (  )  [inline, slot]

Get the name for the current snapshot

Definition at line 135 of file ViewerProperties.hh.

Referenced by CoreWidget::slotSnapshotName(), and glViewer::snapshot().

bool Viewer::ViewerProperties::updateLocked (  )  [inline, slot]

Are updateDisplayList() and updateGL() locked? (c.f. lockUpdate())

Definition at line 288 of file ViewerProperties.hh.

Referenced by glViewer::paintGL(), and glViewer::updateGL().


Member Data Documentation

If rendering is in picking mode, this variable controls which picking targets will be rendered. ( see renderPicking_ , renderPicking(bool _renderPicking, PickRendererMode _mode) , and ACG::SceneGraph::PickTarget

Definition at line 264 of file ViewerProperties.hh.

This variable controls if the scene is rendered in normal or in picking mode

Definition at line 258 of file ViewerProperties.hh.


The documentation for this class was generated from the following files:

acg pic Project OpenFlipper, ©  Computer Graphics Group, RWTH Aachen. Documentation generated using doxygen .