39#ifndef DISTI_INCLUDED_GLS_NURB_CURVE_H
40#define DISTI_INCLUDED_GLS_NURB_CURVE_H
47#if( defined( GLSGEN_EXPORT_GLSNURBCURVE ) || defined( GLSGEN_IMPORT_GLSNURBCURVE ) || defined( GLS_EXPORT_GENERATED ) || defined( GLS_IMPORT_GENERATED ) ) \
48 && defined( _MSC_VER )
49# if defined( GLSGEN_EXPORT_GLSNURBCURVE ) || defined( GLS_EXPORT_GENERATED )
50# define GLSGEN_GLSNURBCURVE_EXPORT __declspec( dllexport )
52# define GLSGEN_GLSNURBCURVE_EXPORT __declspec( dllimport )
55# define GLSGEN_GLSNURBCURVE_EXPORT
60#define LIB_BASE_NAME "gls_nurb_curve"
79 GLS_GLSNURBCURVE_FIRST_VALUE = GLS_LAST_INITIALIZER + 1,
80 GLS_GLSNURBCURVE_EMITEVENT
87 DISTI_DEPRECATED(
"This identifier is forbidden by the C++ standard. Use BaseClass instead." )
90 friend class GlsNurbCurveEditor;
98 Vertex* _tesselated_vertices;
99 unsigned int _tesselated_vertices_count;
Definition: dynamic_array.h:79
Definition: gls_color.h:53
Definition: gls_nurb_curve.h:85
void CopyGeometry(DisplayObject *src) DISTI_METHOD_OVERRIDE
void VaListSetVertices(unsigned int nPoints, va_list args) DISTI_METHOD_OVERRIDE
void SetFillColor(const GlsColor &color) DISTI_METHOD_OVERRIDE
void GetTransformedExtents(Vector &min, Vector &max, const GlsMatrixType &matrix, bool resetMinMax=true) DISTI_METHOD_OVERRIDE
void GetCppInterfaceDescriptionFree(InterfaceListType *array) DISTI_METHOD_OVERRIDE
void DeleteVertexAt(unsigned int index) DISTI_METHOD_OVERRIDE
void Scale(float px, float py, float pz, Vertex *a, int handleBar) DISTI_METHOD_OVERRIDE
unsigned int NumberOfTessVertices() const
Definition: gls_nurb_curve.h:145
void GenerateTessellatedVertices()
virtual void CalcNormals(int windingOrder=1)
void SetVertices(unsigned int nPoints, Vertex *vertices) DISTI_METHOD_OVERRIDE
void PreDraw(const OpenGLMatrices &parentMatrices, Culler &culler) DISTI_METHOD_OVERRIDE
static DisplayObject * CreateInstance()
void Draw() DISTI_METHOD_OVERRIDE
void SetVertexColor(unsigned int index, unsigned char col[]) DISTI_METHOD_OVERRIDE
void CalculateTextureCoordinates() DISTI_METHOD_OVERRIDE
bool Hit(float x, float y, float z, float scale, const Vector &directionVector, Vector *collisionPoint) DISTI_METHOD_OVERRIDE
Vertex * TessVertices()
Definition: gls_nurb_curve.h:150
DisplayObject * CloneObject(bool generateNames=false) DISTI_METHOD_OVERRIDE
void GenerateSpline(unsigned int num_vertices, Vertex *vertices, unsigned int *curve_array_size, Vertex *curve_array)
void GetExtents(float &x, float &y, float &z, float &x1, float &y1, float &z1) DISTI_METHOD_OVERRIDE
void SetAvailableAttributes(unsigned int availableAttributes) DISTI_METHOD_OVERRIDE
InterfaceListType * GetCppInterfaceDescription(InterfaceListType *addToThisList=NULL) DISTI_METHOD_OVERRIDE
void Rotate(const Vector &orig, float angle, const Vector &axis) DISTI_METHOD_OVERRIDE
Definition: gls_vertex_array.h:58
Class to contain current OpenGL view, projection and draw matrices.
Definition: util.h:540
The disti::DisplayObject class and global enumerations.
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: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
#define GLSGEN_GLSNURBCURVE_EXPORT
Provides support for creating DLLs.
Definition: gls_nurb_curve.h:55
Definition: bmpimage.h:46
const int MAX_SPLINE_VERTICES
Definition: gls_nurb_curve.h:67
const int NUMBER_POINTS_TO_CONSIDER
Definition: gls_nurb_curve.h:74
const int MIN_NUMBER_POINTS
Definition: gls_nurb_curve.h:70