52#if( defined( GLSGEN_EXPORT_GLSELLIPSE ) || defined( GLSGEN_IMPORT_GLSELLIPSE ) || defined( GLS_EXPORT_GENERATED ) || defined( GLS_IMPORT_GENERATED ) ) \
53 && defined( _MSC_VER )
54# if defined( GLSGEN_EXPORT_GLSELLIPSE ) || defined( GLS_EXPORT_GENERATED )
55# define GLSGEN_GLSELLIPSE_EXPORT __declspec( dllexport )
57# define GLSGEN_GLSELLIPSE_EXPORT __declspec( dllimport )
60# define GLSGEN_GLSELLIPSE_EXPORT
65#define LIB_BASE_NAME "gls_ellipse"
74 GLS_ELLIPSE_FIRST_VALUE = GLS_LAST_INITIALIZER + 1,
76 GLS_ELLIPSE_THICKNESS,
79 GLS_ELLIPSE_START_ANGLE,
80 GLS_ELLIPSE_END_ANGLE,
87 friend class GlsEllipseEditor;
90 DISTI_DEPRECATED(
"This identifier is forbidden by the C++ standard. Use BaseClass instead." )
232 _geometryRefresh =
true;
Definition: dynamic_array.h:79
The Polygon class. Implements Polygons.
Definition: glpolygon.h:56
Definition: gls_color.h:54
Definition: gls_display_list.h:51
void Invalidate()
Definition: gls_display_list.h:85
Definition: gls_ellipse.h:86
virtual InterfaceListType * GetCppInterfaceDescription(InterfaceListType *addToThisList=NULL) DISTI_METHOD_OVERRIDE
virtual void CalculateTextureCoordinates() DISTI_METHOD_OVERRIDE
Vector _start[2]
Definition: gls_ellipse.h:324
virtual void SetAvailableAttributes(unsigned int value) DISTI_METHOD_OVERRIDE
Vector _centerTex
Definition: gls_ellipse.h:328
virtual void Draw() DISTI_METHOD_OVERRIDE
virtual void GetCppInterfaceDescriptionFree(InterfaceListType *array) DISTI_METHOD_OVERRIDE
float _startAngle
Definition: gls_ellipse.h:333
Vector _startTex[2]
Definition: gls_ellipse.h:325
virtual float StartAngle()
void DrawSolidCircle(bool textureObject)
void GetSegmentIndices(const float startAngle, unsigned int &startIndex, const float endAngle, unsigned int &endIndex)
virtual DisplayObject * CloneObject(bool generateNames=false) DISTI_METHOD_OVERRIDE
void CalculateStartVertices()
virtual bool Hit(float x, float y, float z, float scale, const Vector &directionVector, Vector *collisionPoint) DISTI_METHOD_OVERRIDE
virtual void PreDraw(const OpenGLMatrices &parentMatrices, Culler &culler) DISTI_METHOD_OVERRIDE
Vector _endTex[2]
Definition: gls_ellipse.h:327
void CalculateEndVertices()
virtual void SetValue(int spec, va_list &args) DISTI_METHOD_OVERRIDE
GlsDisplayList & DisplayList()
Definition: gls_ellipse.h:244
virtual void Rotate(const Vector &orig, float angle, const Vector &axis) DISTI_METHOD_OVERRIDE
DisplayObject * handle(DisplayEvent *ev) DISTI_METHOD_OVERRIDE
virtual unsigned int Interval()
virtual Vertex * Vertices() DISTI_METHOD_OVERRIDE
GlsColor _objectColor
Definition: gls_ellipse.h:330
virtual Vector RadiusVector(unsigned int index)
static DisplayObject * CreateInstance()
virtual void GetExtents(float &minx, float &miny, float &minz, float &maxx, float &maxy, float &maxz) DISTI_METHOD_OVERRIDE
Vector _radii[2]
Definition: gls_ellipse.h:318
virtual void CopyGeometry(DisplayObject *srcArg) DISTI_METHOD_OVERRIDE
virtual float Thickness()
void DrawArcSegment(bool textureObject)
GlsDisplayList _displayList
Definition: gls_ellipse.h:313
unsigned int InnerIndex(const unsigned int index)
Vector _end[2]
Definition: gls_ellipse.h:326
virtual void RadiusVectors(const Vector &r1, const Vector &r2)
float _thickness
Definition: gls_ellipse.h:332
GlsMatrixType _world2tex
Definition: gls_ellipse.h:341
unsigned int _interval
Definition: gls_ellipse.h:337
virtual bool SetupTexture()
void CalculateRadiiUnit()
virtual void Magnitude(const float &value, unsigned int index)
Vector _radiiUnit[2]
Definition: gls_ellipse.h:323
bool _solid
Definition: gls_ellipse.h:338
unsigned int OuterIndex(const unsigned int index)
virtual void Scale(float px, float py, float pz, Vertex *anchor, int handleBar) DISTI_METHOD_OVERRIDE
virtual void CopyProperties(DisplayObject *src) DISTI_METHOD_OVERRIDE
float _endAngle
Definition: gls_ellipse.h:334
GlsEllipse(bool generateInstance=false)
virtual void UpdateBoundingVolume() DISTI_METHOD_OVERRIDE
virtual Vector UnitVector(unsigned int index)
virtual GlsColor GetFillColor() DISTI_METHOD_OVERRIDE
virtual void GetTransformedExtents(Vector &min, Vector &max, const GlsMatrixType &matrix, bool resetMinMax) DISTI_METHOD_OVERRIDE
void InvalidateGeometry()
Definition: gls_ellipse.h:237
bool _needsRecalculate
If true, the ellipse vertices will be recalculated next frame from angle and radius data.
Definition: gls_ellipse.h:339
float _magnitude[2]
Definition: gls_ellipse.h:335
virtual void SetFillColor(const GlsColor &color) DISTI_METHOD_OVERRIDE
Vector _normal
Definition: gls_ellipse.h:322
void SetNeedsRecalculate()
Definition: gls_glo_file.h:1243
Definition: gls_vertex_array.h:60
Class to contain current OpenGL view, projection and draw matrices.
Definition: util.h:544
The disti::GLPolygon class. Implements Polygons.
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:235
#define DISTI_DEPRECATED(msg)
Defines whether this compiler supports the C++14 deprecated attribute.
Definition: gls_cpp_lang_support.h:457
#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
The disti::GlsDisplayList class.
#define GLSGEN_GLSELLIPSE_EXPORT
Provides support for creating DLLs.
Definition: gls_ellipse.h:60
#define GLS_EXPORT
Macro denoting which functions should be visible from the runtime library.
Definition: gls_include.h:52
The disti::GlsIndexArray class, for managing index buffers.
An object for managing vertices, texture coordinates, colors and normals for GLPolygon and other disp...
Force inclusion of the DirectShow library.
Definition: bmpimage.h:47