DataDirector API
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Fl_RSO_Window Class Reference

Fl_RSO_Window. FLTK/OpenGL window that displays RSO Assets. More...

#include <Fl_RSO_Window.H>

Inheritance diagram for Fl_RSO_Window:

Public Member Functions

virtual ~Fl_RSO_Window ()
 
 Fl_RSO_Window (int W, int H, const char *l=0)
 
 Fl_RSO_Window (int X, int Y, int W, int H, const char *l=0)
 
virtual void Clear ()
 
virtual void InitializeCanvas (float width, float height)
 
void AddComponent (disti::ComponentBase *component)
 

Protected Member Functions

bool SetupOpenGLState ()
 
void RestoreOpenGLState (bool saveVal)
 
void DrawCanvas ()
 
void DrawStats ()
 
void DrawObjects (bool previewMode)
 

Protected Attributes

disti::GLPolygon * _canvas
 
disti::Vector _viewTranslation
 
disti::Group _objects
 
float _viewScale
 
disti::DDD_AssetBase_currentlySelectedAsset
 
disti::DDD_RSOAsset_currentlySelectedRSO
 
disti::OpenGLMatrices _currentMatrices
 
disti::Vector _previousMouseEventLocation
 
disti::DDD_PerformanceMonitor_drawProfiler
 
disti::DDD_PerformanceMonitor_renderProfiler
 
disti::DDD_PerformanceMonitor_fpsProfiler
 
float _smoothedFrameDelay
 
bool _redraw
 
int _frameInterval
 

Detailed Description

Fl_RSO_Window. FLTK/OpenGL window that displays RSO Assets.

Constructor & Destructor Documentation

virtual ~Fl_RSO_Window ( )
virtual

Destructor

Fl_RSO_Window ( int  W,
int  H,
const char *  l = 0 
)

Constructor

Parameters
WWidth for the new window
HHeight for the new window
lLabel for the new window
Fl_RSO_Window ( int  X,
int  Y,
int  W,
int  H,
const char *  l = 0 
)

Constructor

Parameters
XX position for the new window
YY position for the new window
WWidth for the new window
HHeight for the new window
lLabel for the new window

Member Function Documentation

void AddComponent ( disti::ComponentBase *  component)

Iserts a component pointer into to the top of _object to be drawn first

Parameters
componentPointer to the component that's being added
virtual void Clear ( )
virtual

Initializes all members to their default settings

void DrawCanvas ( )
protected

Draw the Canvas.

void DrawObjects ( bool  previewMode)
protected

Draw the objects

Parameters
previewModeWhen true, all objects are drawn. When false only objects on the canvas are drawn.
void DrawStats ( )
protected

Draw performance statistics

virtual void InitializeCanvas ( float  width,
float  height 
)
virtual

Recreates the canvas size based on the input width and height

Parameters
widthValue for the canvas width
heightValue for the canvas height
void RestoreOpenGLState ( bool  saveVal)
protected

Setup the OpenGL Context for drawing

Returns
Returns true if states will need to be restored
bool SetupOpenGLState ( )
protected

Setup the OpenGL Context for drawing

Returns
Returns true if states will need to be restored

Member Data Documentation

disti::GLPolygon* _canvas
protected

Polygon that defines the canvas to be drawn.

disti::DDD_AssetBase* _currentlySelectedAsset
protected

The currently selected Asset

disti::DDD_RSOAsset* _currentlySelectedRSO
protected

The currently selected RSO

disti::OpenGLMatrices _currentMatrices
protected

The current OpenGL Matrices

disti::DDD_PerformanceMonitor* _drawProfiler
protected

Measures Draw performance

disti::DDD_PerformanceMonitor * _fpsProfiler
protected

Measures FPS performance

int _frameInterval
protected

frame interval in microseconds

disti::Group _objects
protected

Contains a list of components that will be used to draw with

disti::Vector _previousMouseEventLocation
protected

The last mouse event location

bool _redraw
protected

Flag indicating if the window should be redrawn

disti::DDD_PerformanceMonitor * _renderProfiler
protected

Measures render(draw+predraw) performance

float _smoothedFrameDelay
protected

Frame interval, smoothed based on actual draw performance

float _viewScale
protected

Sets the viewing scale for the window

disti::Vector _viewTranslation
protected

The current translation for the view


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