39#ifndef DISTI_INCLUDED_RUNTIME_DISPLAY_FRAME_H
40#define DISTI_INCLUDED_RUNTIME_DISPLAY_FRAME_H
Definition: display_frame.h:86
Definition: gls_color.h:53
Definition: gls_eyepoint.h:116
Definition: gls_painter.h:50
Definition: runtime_display_frame.h:54
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:245
virtual void Paint()
Definition: runtime_display_frame.h:196
void ClearDragAndFocus() override
virtual bool UpdateAnimate()
virtual int CurrentView() const
Definition: runtime_display_frame.h:250
virtual ~RuntimeDisplayFrame()
Timer & frameTimer
For backwards compatibility.
Definition: runtime_display_frame.h:59
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:71
bool _autoCalcNearZ
When true a _nearZ is automatically calculated.
Definition: runtime_display_frame.h:69
bool IsInvalidated() const override
virtual void RecordCalculateEnd()
float _depthFactor
Used for auto calculations.
Definition: runtime_display_frame.h:66
bool _redraw
Flag indicating if the window should be redrawn.
Definition: runtime_display_frame.h:78
float _height_offset
Current "height" offset of window. Used for panning of display vertically in ortho mode.
Definition: runtime_display_frame.h:64
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:70
GlsEyePoint * _currentEyePoint
The current eyepoint for viewing the scene.
Definition: runtime_display_frame.h:77
int _current_view
Current view of the canvas (e.g., ortho, perspective, eyepoint).
Definition: runtime_display_frame.h:72
double _nearZ
Near clipping plane. Only meaningful if _autoCalcNearZ is false.
Definition: runtime_display_frame.h:68
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:67
Timer _frameTimer
Timer used for scheduling.
Definition: runtime_display_frame.h:58
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:74
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:63
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:60
float _scale
Scale of the window.
Definition: runtime_display_frame.h:75
virtual void GetBackgroundColor(unsigned char &r, unsigned char &g, unsigned char &b, unsigned char &a)
GlsColor _backgroundColor
Definition: runtime_display_frame.h:257
Vector _viewOffset
Additional offset to apply to the modelview matrix.
Definition: runtime_display_frame.h:65
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:76
Definition: statistics.h:56
The Timer class.
Definition: timer.h:66
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:221
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:50
Definition: bmpimage.h:46
The disti::Timer class. An OS portable timing class.