QCameraKeyPathEditorImpl Class Reference

#include <QCameraKeyPathEditorImpl.h>

Inheritance diagram for QCameraKeyPathEditorImpl:

QCameraKeyPathEditor QSceneTreeDrawable QSceneTreeNode GLDrawable CTreeNode List of all members.

Public Slots

void sltSetCameraPath (const CList< CCameraKeyPathPoint > &)

Signals

void sigRedrawGL ()
void sigCameraKeyPath (const CList< CCameraKeyPathPoint > &)

Public Member Functions

 QCameraKeyPathEditorImpl (QGLViewer *viewer, QWidget *parent=0, const char *name=0, WFlags fl=0)
 ~QCameraKeyPathEditorImpl ()
void updateBoundingBox ()
virtual void draw ()

Protected Member Functions

void dragEnterEvent (QDragEnterEvent *)
void dragLeaveEvent (QDragLeaveEvent *)
void dropEvent (QDropEvent *)

Private Slots

void sltDeleteCamera ()
void sltReplaceCamera ()
void sltSetIconSize (double)
void sltSetFrustumSize (double)
void sltShowOptions ()
void sltSaveInXML ()
void sltSetSaveName (const QString &)
void sltLoadFile ()
void sltChangeCamValue ()
void sltAddNewCamera ()
void sltCheckValues ()
void sltUpdateHighlights (int)
void sltClearHighlights (int nIndex)
void sltUpdateTool (int nIndex)
void sltAttachCamera ()
void sltAbout ()
void sltMoveUp ()
void sltMoveDown ()
void sltUpdateName (int)
void sltOk ()
void sltApply ()

Private Member Functions

bool eventFilter (QObject *o, QEvent *e)
void setCamera (const CCamera &)
void saveInList (QString qname)
void writeAttributes (CCameraKeyPathAttributes)
void setSlider (int)
void writeCameraText (CCamera *)
void formatCamBox ()
CP3D getCurrentEyePos ()
CP3D getCurrentRefPoint ()
CV3D getCurrentViewUp ()
int getCurrentFovy ()
int getCurrentFrames ()
float getCurrentTension ()
float getCurrentContinuity ()
float getCurrentBias ()
void setMenuBar (QLayout *)
void makeArrowDispList ()
void makePathDispList ()
void showError (QString qError)
CList< CCameraKeyPathPoint > * getCamerapathPtr ()
void updateHighlights ()
void redraw ()

Private Attributes

QMenuBar * m_pqMenuBar
QGLViewerm_pMyViewer
CCameraKeyPathPoint m_camPoint
CCameraKeyPathAttributes m_attributes
CCamera m_myCamera
CCamera m_detachCamera
CList< CCameraKeyPathPoint > * m_pCameraKeyPath
CList< bool > m_highlightedCams
int m_nSliderIndex
float m_rfIconSize
float m_rfFrustumSize
QDoubleValidator * m_pDValEye
QDoubleValidator * m_pDValRef
QDoubleValidator * m_pDValUp
QDoubleValidator * m_pDValVAngle
QDoubleValidator * m_pDValIcon
QDoubleValidator * m_pDValFrustum
QIntValidator * m_pIValFrame
QDoubleValidator * m_pDValTension
QDoubleValidator * m_pDValCon
QDoubleValidator * m_pDValBias
GLuint m_glPathDispList
GLuint m_glArrowDispList
QString m_qSaveName
bool m_fClearSelectedCams
bool m_fAttachCamera
bool m_fCorrectValues
bool m_fClearSelection
bool m_fDeleteWithSelection
QIconOptionsm_pqOptions

Detailed Description

Tool to handle camerapaths

Author:
Alexander Buck


Constructor & Destructor Documentation

QCameraKeyPathEditorImpl::QCameraKeyPathEditorImpl ( QGLViewer viewer,
QWidget *  parent = 0,
const char *  name = 0,
WFlags  fl = 0 
)

Constructor using given QGLExaminerViewer.

QCameraKeyPathEditorImpl::~QCameraKeyPathEditorImpl (  ) 

Default destructor.


Member Function Documentation

void QCameraKeyPathEditorImpl::dragEnterEvent ( QDragEnterEvent *   )  [protected]

Method to handle drag 'n drop.

void QCameraKeyPathEditorImpl::dragLeaveEvent ( QDragLeaveEvent *   )  [protected]

Method to handle drag 'n drop.

void QCameraKeyPathEditorImpl::draw (  )  [virtual]

Draws a path.

Implements GLDrawable.

void QCameraKeyPathEditorImpl::dropEvent ( QDropEvent *   )  [protected]

Method to handle drag 'n drop.

bool QCameraKeyPathEditorImpl::eventFilter ( QObject *  o,
QEvent *  e 
) [private]

Filters events.

void QCameraKeyPathEditorImpl::formatCamBox (  )  [private]

Writes the names into the camera box.

CList<CCameraKeyPathPoint>* QCameraKeyPathEditorImpl::getCamerapathPtr (  )  [inline, private]

Returns pointer to the cameralist.

float QCameraKeyPathEditorImpl::getCurrentBias (  )  [private]

Returns current bias.

float QCameraKeyPathEditorImpl::getCurrentContinuity (  )  [private]

Returns current continuity.

CP3D QCameraKeyPathEditorImpl::getCurrentEyePos (  )  [private]

Returns current EyePos.

int QCameraKeyPathEditorImpl::getCurrentFovy (  )  [private]

Returns current fovy.

int QCameraKeyPathEditorImpl::getCurrentFrames (  )  [private]

Returns current frames.

CP3D QCameraKeyPathEditorImpl::getCurrentRefPoint (  )  [private]

Returns current RefPoint.

float QCameraKeyPathEditorImpl::getCurrentTension (  )  [private]

Returns current tension.

CV3D QCameraKeyPathEditorImpl::getCurrentViewUp (  )  [private]

Returns current ViewUp.

void QCameraKeyPathEditorImpl::makeArrowDispList (  )  [private]

Builds the OpenGl-List to draw an arrow.

void QCameraKeyPathEditorImpl::makePathDispList (  )  [private]

Builds the OpenGl-List to draw the camera-key-path.

void QCameraKeyPathEditorImpl::redraw (  )  [private]

Redraws the scene.

void QCameraKeyPathEditorImpl::saveInList ( QString  qname  )  [private]

Add current camera (m_myCamera) to path with given name.

void QCameraKeyPathEditorImpl::setCamera ( const CCamera  )  [private]

Adds given camera to path. This function is called when a camera is dropped on the tool.

void QCameraKeyPathEditorImpl::setMenuBar ( QLayout *   )  [private]

Provides a menu bar, which is added to given layout.

void QCameraKeyPathEditorImpl::setSlider ( int   )  [private]

Sets slider to given value. Also updates range of slider.

void QCameraKeyPathEditorImpl::showError ( QString  qError  )  [private]

Shows a Dialog with the given error.

void QCameraKeyPathEditorImpl::sigCameraKeyPath ( const CList< CCameraKeyPathPoint > &   )  [signal]

Is emitted to submit the camerapath.

void QCameraKeyPathEditorImpl::sigRedrawGL (  )  [signal]

This signal is emitted when the scene should be redrawed.

void QCameraKeyPathEditorImpl::sltAbout (  )  [private, slot]

Shows "About" box.

void QCameraKeyPathEditorImpl::sltAddNewCamera (  )  [private, slot]

Adds a new camera to the path.

void QCameraKeyPathEditorImpl::sltApply (  )  [inline, private, virtual, slot]

Emits the current path by sending a 'sigCameraPath(...)'- signal but stays the window open.

Reimplemented from QCameraKeyPathEditor.

void QCameraKeyPathEditorImpl::sltAttachCamera (  )  [private, virtual, slot]

Handles the attach/detach/ feature.

Reimplemented from QCameraKeyPathEditor.

void QCameraKeyPathEditorImpl::sltChangeCamValue (  )  [private, virtual, slot]

Changes values of current camera.

Reimplemented from QCameraKeyPathEditor.

void QCameraKeyPathEditorImpl::sltCheckValues (  )  [private, virtual, slot]

Checks all input fields for correct input.

Reimplemented from QCameraKeyPathEditor.

void QCameraKeyPathEditorImpl::sltClearHighlights ( int  nIndex  )  [private, virtual, slot]

Clears old selection, selects item nIndex and redraws scene.

Reimplemented from QCameraKeyPathEditor.

void QCameraKeyPathEditorImpl::sltDeleteCamera (  )  [private, virtual, slot]

Is called when the delete button is clicked.

Reimplemented from QCameraKeyPathEditor.

void QCameraKeyPathEditorImpl::sltLoadFile (  )  [private, slot]

Loads XML-file.

void QCameraKeyPathEditorImpl::sltMoveDown (  )  [private, virtual, slot]

Moves selected items downwards.

Reimplemented from QCameraKeyPathEditor.

void QCameraKeyPathEditorImpl::sltMoveUp (  )  [private, virtual, slot]

Moves selected items upwards.

Reimplemented from QCameraKeyPathEditor.

void QCameraKeyPathEditorImpl::sltOk (  )  [inline, private, virtual, slot]

Emits the current path by sending a 'sigCameraPath(...)'- signal and closes the window.

Reimplemented from QCameraKeyPathEditor.

void QCameraKeyPathEditorImpl::sltReplaceCamera (  )  [private, virtual, slot]

Is called when the replace button is clicked.

Reimplemented from QCameraKeyPathEditor.

void QCameraKeyPathEditorImpl::sltSaveInXML (  )  [private, slot]

Save path in XML-file.

void QCameraKeyPathEditorImpl::sltSetCameraPath ( const CList< CCameraKeyPathPoint > &   )  [slot]

Sets Cameralist to given List. This slot is calles for when a camerapath is dropped on the tool or on the CameraKeyPathDropSite.

void QCameraKeyPathEditorImpl::sltSetFrustumSize ( double   )  [private, slot]

Saves the current frustumsize in m_rfFrustumsize.

void QCameraKeyPathEditorImpl::sltSetIconSize ( double   )  [private, slot]

Saves the current iconsize in m_rfIconsize.

void QCameraKeyPathEditorImpl::sltSetSaveName ( const QString &   )  [private, slot]

Holds the current filename for saving.

void QCameraKeyPathEditorImpl::sltShowOptions (  )  [private, slot]

Shows options.

void QCameraKeyPathEditorImpl::sltUpdateHighlights ( int   )  [private, virtual, slot]

Marks highlighted cameras and redraws scene.

Reimplemented from QCameraKeyPathEditor.

void QCameraKeyPathEditorImpl::sltUpdateName ( int   )  [private, virtual, slot]

Updates name in given index.

Reimplemented from QCameraKeyPathEditor.

void QCameraKeyPathEditorImpl::sltUpdateTool ( int  nIndex  )  [private, virtual, slot]

Updates tool with given nIndex.

Reimplemented from QCameraKeyPathEditor.

void QCameraKeyPathEditorImpl::updateBoundingBox (  ) 

Update bounding box.

void QCameraKeyPathEditorImpl::updateHighlights (  )  [private]

Updates current highlights.

void QCameraKeyPathEditorImpl::writeAttributes ( CCameraKeyPathAttributes   )  [private]

Write given ttributes in proper fields.

void QCameraKeyPathEditorImpl::writeCameraText ( CCamera  )  [private]

Write given camera values in proper fields.


Member Data Documentation

CCameraKeyPathAttributes QCameraKeyPathEditorImpl::m_attributes [private]

Current attributes.

CCameraKeyPathPoint QCameraKeyPathEditorImpl::m_camPoint [private]

Current camera path point.

CCamera QCameraKeyPathEditorImpl::m_detachCamera [private]

Holds camera to detach view.

bool QCameraKeyPathEditorImpl::m_fAttachCamera [private]

Attach cameras?.

bool QCameraKeyPathEditorImpl::m_fClearSelectedCams [private]

Clears selection if necessary.

bool QCameraKeyPathEditorImpl::m_fClearSelection [private]

Clear selection?.

bool QCameraKeyPathEditorImpl::m_fCorrectValues [private]

Values correct?.

bool QCameraKeyPathEditorImpl::m_fDeleteWithSelection [private]

Update slider while deleting?.

GLuint QCameraKeyPathEditorImpl::m_glArrowDispList [private]

Open-GL display list.

GLuint QCameraKeyPathEditorImpl::m_glPathDispList [private]

Open-GL display list.

CList<bool> QCameraKeyPathEditorImpl::m_highlightedCams [private]

Saves current highlighted cameras.

CCamera QCameraKeyPathEditorImpl::m_myCamera [private]

Current camera.

int QCameraKeyPathEditorImpl::m_nSliderIndex [private]

The slider's current index.

CList<CCameraKeyPathPoint>* QCameraKeyPathEditorImpl::m_pCameraKeyPath [private]

Current path.

QDoubleValidator* QCameraKeyPathEditorImpl::m_pDValBias [private]

Validator for the bias.

QDoubleValidator* QCameraKeyPathEditorImpl::m_pDValCon [private]

Validator for the continuity.

QDoubleValidator* QCameraKeyPathEditorImpl::m_pDValEye [private]

Validator for the EyePos.

QDoubleValidator* QCameraKeyPathEditorImpl::m_pDValFrustum [private]

Validator for the frustumsize.

QDoubleValidator* QCameraKeyPathEditorImpl::m_pDValIcon [private]

Validator for the iconsize.

QDoubleValidator* QCameraKeyPathEditorImpl::m_pDValRef [private]

Validator for the RefPoint.

QDoubleValidator* QCameraKeyPathEditorImpl::m_pDValTension [private]

Validator for the tension.

QDoubleValidator* QCameraKeyPathEditorImpl::m_pDValUp [private]

Validator for the ViewUp.

QDoubleValidator* QCameraKeyPathEditorImpl::m_pDValVAngle [private]

Validator for the fovy.

QIntValidator* QCameraKeyPathEditorImpl::m_pIValFrame [private]

Validator for the framerate.

QGLViewer* QCameraKeyPathEditorImpl::m_pMyViewer [private]

Holds current given viewer.

QMenuBar* QCameraKeyPathEditorImpl::m_pqMenuBar [private]

The menu bar.

QIconOptions* QCameraKeyPathEditorImpl::m_pqOptions [private]

Menu for options.

QString QCameraKeyPathEditorImpl::m_qSaveName [private]

Current name for saving .

float QCameraKeyPathEditorImpl::m_rfFrustumSize [private]

Current frustumsize.

float QCameraKeyPathEditorImpl::m_rfIconSize [private]

Current iconsize.


The documentation for this class was generated from the following files:
Generated on Mon Jul 10 12:45:59 2006 for QGLViewer by  doxygen 1.4.7