VISH  0.2
Classes | Public Slots | Signals | Public Member Functions | Public Attributes | Protected Member Functions
PfWidget Class Reference

PfWidget class. More...

#include </home/werner/origo/vish/modules/pf/PfWidget.h>

List of all members.

Classes

Public Slots

Signals

Public Member Functions

Public Attributes

Protected Member Functions


Detailed Description

PfWidget class.

Wraps Performer calls in a Qt widget so it can be used in Qt user interfaces. Note that this probably does not give the best performance possible since it's triggered from the Qt event loop.


Constructor & Destructor Documentation

PfWidget::PfWidget ( QWidget *  parent = NULL,
const char *  name = "PfWidget" 
)

Constructor.

Calls pfInit if not already initialized.


Member Function Documentation

void PfWidget::setChannel ( pfChannel *  chan)

Set channel.

Parameters:
chanpfChannel to use. This cannot be changed after the window is opened.
void PfWidget::setFrameTime ( int  t) [slot]

Set frame timer in milliseconds.

Parameters:
tUpdate rate in milliseconds. This parameter determines how often the scene is redrawn.
void PfWidget::setNearFar ( float  neardist,
float  fardist 
) [slot]

Set near/far clipping planes.

Parameters:
nearNear clipping plane.
farFar clipping plane.
void PfWidget::setPipeNum ( int  pipeNum)

Set pipe number.

Parameters:
pipeNumPipe number to open the window on. This cannot be changed after the window is opened.
void PfWidget::setPipeWindow ( pfPipeWindow *  pipeWin)

Set pipe window.

Parameters:
pipeWinpfPipeWindow to use. This cannot be changed after the window is opened.
void PfWidget::setScene ( pfScene *  scene)

Set scene.

If none is given before it is needed a default scene with a single light will be created.

Parameters:
scenepfScene to use. This can be changed after the window is opened :-)
void PfWidget::setView ( float  azim,
float  elev,
float  dist = 0.0f 
) [slot]

Set viewer position by azimuth/elevation/distance angles.

Parameters:
azimAzimuth angle in degrees, where 0=N, 90=E, 180=S, 270=W.
elevHeight angle in degrees.
distDistance from center. If this is =< 0.0 then the radius of the scene's bounding sphere is used instead.
void PfWidget::setViewAll ( ) [slot]

View entire scene.

This function positions the camera to view the entire scene.


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