40#ifndef _RUNTIME_DISPLAY_FRAME_H
41#define _RUNTIME_DISPLAY_FRAME_H
Definition: display_frame.h:87
Definition: gls_color.h:54
Definition: gls_eyepoint.h:117
Definition: gls_painter.h:51
Definition: runtime_display_frame.h:55
RuntimeDisplayFrame(const char *name, int width, int height)
virtual void FOV(double fov)
virtual void HeightOffset(float offset)
virtual void CurrentView(const int view)
Definition: runtime_display_frame.h:246
virtual void Paint()
Definition: runtime_display_frame.h:197
virtual bool UpdateAnimate()
virtual int CurrentView() const
Definition: runtime_display_frame.h:251
virtual ~RuntimeDisplayFrame()
Timer & frameTimer
For backwards compatibility.
Definition: runtime_display_frame.h:60
void Invalidate() override
Notify the painter that the scene needs to be redrawn.
bool _autoCalcFarZ
When true a _farZ is automatically calculated.
Definition: runtime_display_frame.h:72
bool _autoCalcNearZ
When true a _nearZ is automatically calculated.
Definition: runtime_display_frame.h:70
bool IsInvalidated() const override
virtual void RecordCalculateEnd()
float _depthFactor
Used for auto calculations.
Definition: runtime_display_frame.h:67
virtual void ClearDragAndFocus() override
bool _redraw
Flag indicating if the window should be redrawn.
Definition: runtime_display_frame.h:79
float _height_offset
Current "height" offset of window. Used for panning of display vertically in ortho mode.
Definition: runtime_display_frame.h:65
virtual void RecordCalculateStart()
virtual int FrameInterval()
virtual float HeightOffset()
virtual Statistics * Stats()
double _farZ
Far clipping plane. Only meaningfull if _autoCalcVarZ is false.
Definition: runtime_display_frame.h:71
GlsEyePoint * _currentEyePoint
The current eyepoint for viewing the scene.
Definition: runtime_display_frame.h:78
int _current_view
Current view of the canvas (e.g., ortho, perspective, eyepoint).
Definition: runtime_display_frame.h:73
virtual float Scale() override
double _nearZ
Near clipping plane. Only meaningful if _autoCalcNearZ is false.
Definition: runtime_display_frame.h:69
virtual void Scale(float scale)
virtual void WaitForNextFrame()
double _fov
Field Of View. If 0.0 (the default), fov will be auto calculated.
Definition: runtime_display_frame.h:68
Timer _frameTimer
Timer used for scheduling.
Definition: runtime_display_frame.h:59
virtual float DepthFactor()
virtual DisplayObject * handle(DisplayEvent *ev)
std::string _name
The title of this display frame's window, if applicable.
Definition: runtime_display_frame.h:75
virtual GlsEyePoint * CurrentEyePoint()
float _width_offset
For better control over clipping and field of view, use a GlsEyePoint, but some limited functionality...
Definition: runtime_display_frame.h:64
virtual GlsColor BackgroundColor()
virtual void WidthOffset(float offset)
virtual void DepthFactor(float factor)
float _smoothedFrameDelay
Frame interval, smoothed based on actual draw performance.
Definition: runtime_display_frame.h:61
float _scale
Scale of the window.
Definition: runtime_display_frame.h:76
virtual void GetBackgroundColor(unsigned char &r, unsigned char &g, unsigned char &b, unsigned char &a)
GlsColor _backgroundColor
Definition: runtime_display_frame.h:258
Vector _viewOffset
Additional offset to apply to the modelview matrix.
Definition: runtime_display_frame.h:66
virtual void CurrentEyePoint(GlsEyePoint *eye)
virtual float WidthOffset()
virtual bool FrameAnimate()
unsigned int frameInterval
The frame interval in microSeconds (inverse of frame rate).
Definition: runtime_display_frame.h:77
Definition: statistics.h:57
The Timer class.
Definition: timer.h:67
The disti::DisplayFrame class.
#define DISTI_METHOD_OVERRIDE
Macro to wrap the override keyword, removed on compilers that don't support it.
Definition: gls_cpp_lang_support.h:214
A file for all GL Studio files to include.
#define GLS_EXPORT
Macro denoting which functions should be visible from the runtime library.
Definition: gls_include.h:52
Force inclusion of the DirectShow library.
Definition: bmpimage.h:47
The disti::Timer class. An OS portable timing class.