39#ifndef DISTI_INCLUDED_GLS_EYEPOINT_H
40#define DISTI_INCLUDED_GLS_EYEPOINT_H
56 GLS_EYEPOINT_FOV = GLS_LAST_INITIALIZER + 1,
57 GLS_EYEPOINT_ORTHOGRAPHIC,
58 GLS_EYEPOINT_ORTHO_SIZE,
59 GLS_EYEPOINT_FOV_IS_HORIZONTAL,
61 GLS_EYEPOINT_NEAR_CLIP,
62 GLS_EYEPOINT_FAR_CLIP,
63 GLS_EYEPOINT_MAINTAIN_ASPECT,
64 GLS_EYEPOINT_VIEW_VECTORS
81 virtual void Call(
int viewWidth,
int viewHeight,
GlsEyePoint* thisEye,
double& rval1,
double& rval2 ) = 0;
89 typedef void ( T::*
MethodType )(
int viewWidth,
int viewHeight,
GlsEyePoint* thisEye,
double& rval1,
double& rval2 );
118 DISTI_DEPRECATED(
"This identifier is forbidden by the C++ standard. Use BaseClass instead." )
121 friend class GlsEyePointEditor;
127 FOV_CONSTRAINT_GREATER,
129 FOV_CONSTRAINT_EXACTLY
133 static bool _drawDebugGeometry;
203 bool fovIsHorizontal,
205 double otherOrthoSize,
431 bool _getModelViewMatrixIncludeEyeToWorld;
437 int _getProjectionMatrixWidth;
438 int _getProjectionMatrixHeight;
Definition: disti_metadata.h:87
virtual void Rotate(float angle, int axis=Z_AXIS)
Definition: disti_metadata.h:1021
void(containerClass::* SetMethodType)(GlsEyePoint::FovConstraintType)
Typedef for the set method function pointer.
Definition: disti_metadata.h:1023
GlsEyePoint::FovConstraintType(containerClass::* GetMethodType)()
Typedef for the get method function pointer.
Definition: disti_metadata.h:1024
The DistiAttributeFovConstraintTypeEnum class.
Definition: gls_eyepoint.h:450
std::string Type() const override
DistiAttributeFovConstraintTypeEnum(GlsEyePoint *frame, SetMethodType setMethod, GetMethodType getMethod, const AttributeName &name)
Definition: dynamic_array.h:79
The EyePointCalcViewCallbackBase class.
Definition: gls_eyepoint.h:71
virtual void Call(int viewWidth, int viewHeight, GlsEyePoint *thisEye, double &rval1, double &rval2)=0
The EyePointCalcViewCallback class.
Definition: gls_eyepoint.h:87
void Call(int viewWidth, int viewHeight, GlsEyePoint *thisEye, double &rval1, double &rval2) override
Definition: gls_eyepoint.h:103
void(T::* MethodType)(int viewWidth, int viewHeight, GlsEyePoint *thisEye, double &rval1, double &rval2)
Typedef for the callback function pointer.
Definition: gls_eyepoint.h:89
EyePointCalcViewCallback(T *container, MethodType method)
Definition: gls_eyepoint.h:97
T * _container
The object which contains the method to call.
Definition: gls_eyepoint.h:91
MethodType _method
The callback method function pointer.
Definition: gls_eyepoint.h:92
Definition: gls_eyepoint.h:116
static void DrawDebugGeometry(bool draw)
Definition: gls_eyepoint.h:162
virtual void CalcPerspectiveView(int viewWidth, int viewHeight, GlsEyePoint *thisEye, double &fovY, double &aspect)
void VerticalConstraint(FovConstraintType val)
void SetAvailableAttributes(unsigned int value) override
InterfaceListType * GetCppInterfaceDescription(InterfaceListType *addToThisList) override
FovConstraintType _verticalConstraint
Definition: gls_eyepoint.h:143
EyePointCalcViewCallbackBase * _alternateCalcPerspectiveView
Definition: gls_eyepoint.h:149
void CopyProperties(DisplayObject *src) override
double _orthoSize
Definition: gls_eyepoint.h:139
float Roll(const Vector upVector=Vector(0, 1, 0))
double _otherFov
Definition: gls_eyepoint.h:137
bool _orthographic
Definition: gls_eyepoint.h:138
EyePointCalcViewCallbackBase * _alternateCalcOrthographicView
Definition: gls_eyepoint.h:148
void Orthographic(bool val)
bool _fovIsHorizontal
Definition: gls_eyepoint.h:141
void CopyGeometry(DisplayObject *src) override
void SetValue(int spec, va_list &args) override
void NearClip(double val)
Vector _viewVectors[3]
Definition: gls_eyepoint.h:146
void OrthoSize(double val)
FovConstraintType _horizontalConstraint
Definition: gls_eyepoint.h:142
static void SetAlternateCalcPerspectiveView(GlsEyePoint *eye, T *container, typename EyePointCalcViewCallback< T >::MethodType method)
Definition: gls_eyepoint.h:417
void GetCppInterfaceDescriptionFree(InterfaceListType *list) override
DisplayObject * CloneObject(bool generateNames=false) override
virtual void GetModelViewMatrix(GlsMatrixType &modelview, bool includeEyeToWorld=true)
double _fov
Definition: gls_eyepoint.h:136
static void SetAlternateCalcOrthographicView(GlsEyePoint *eye, T *container, typename EyePointCalcViewCallback< T >::MethodType method)
Definition: gls_eyepoint.h:403
virtual void DrawFrustum(bool selected, bool orthographic, bool fovIsHorizontal, double orthoSize, double otherOrthoSize, double fov, double otherFov, FovConstraintType horizontalConstraint, FovConstraintType verticalConstraint, double farClip, double nearClip)
virtual void CalcOrthographicView(int viewWidth, int viewHeight, GlsEyePoint *thisEye, double &fovY, double &aspect)
void Orientation(const Vector &direction, float roll, const Vector &upVector=Vector(0, 1, 0))
FovConstraintType VerticalConstraint()
FovConstraintType HorizontalConstraint()
void Rotate(const Vector &orig, float angle, const Vector &axis) override
void OtherOrthoSize(double val)
void FovIsHorizontal(bool val)
virtual void GetProjectionMatrix(GlsMatrixType &proj, int viewW, int viewH)
double _otherOrthoSize
Definition: gls_eyepoint.h:140
void GetViewVectors(Vector &x, Vector &y, Vector &z)
void SetViewVectors(const Vector &x, const Vector &y, const Vector &z)
void HorizontalConstraint(FovConstraintType val)
FovConstraintType
The FovConstraintType enum. Defines view constraint behavior.
Definition: gls_eyepoint.h:125
void OtherFOV(double fovDeg)
virtual void ApplyViewMatrices()
double _farClip
Definition: gls_eyepoint.h:145
double _nearClip
Definition: gls_eyepoint.h:144
Definition: gls_glo_file.h:1241
The disti::DisplayObject class and global enumerations.
The Color class: Implements a 4 component RGBA color.
Macros and helper code to determine what subset of C++11/14/17 is available.
#define DISTI_SPECIAL_MEM_FUN_DELETE
Macro to wrap function deletion, removed on compilers that don't support it.
Definition: gls_cpp_lang_support.h:245
#define DISTI_DEPRECATED(msg)
Defines whether this compiler supports the C++14 deprecated attribute.
Definition: gls_cpp_lang_support.h:487
#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
VertexNoColor Vector
Definition: gls_font_base.h:68
GLS_EyePoint_Initializers
Definition: gls_eyepoint.h:55