39#ifndef INCLUDED_GLS_POLYLINE_H
40#define INCLUDED_GLS_POLYLINE_H
51#if( defined( GLSGEN_EXPORT_GLSPOLYLINE ) || defined( GLSGEN_IMPORT_GLSPOLYLINE ) || defined( GLS_EXPORT_GENERATED ) || defined( GLS_IMPORT_GENERATED ) ) \
52 && defined( _MSC_VER )
53# if defined( GLSGEN_EXPORT_GLSPOLYLINE ) || defined( GLS_EXPORT_GENERATED )
54# define GLSGEN_GLSPOLYLINE_EXPORT __declspec( dllexport )
56# define GLSGEN_GLSPOLYLINE_EXPORT __declspec( dllimport )
59# define GLSGEN_GLSPOLYLINE_EXPORT
64#define LIB_BASE_NAME "gls_poly_line"
73 GLS_POLY_LINE_FIRST_VALUE = GLS_LAST_INITIALIZER + 1,
74 GLS_POLY_LINE_THICKNESS,
76 GLS_POLY_LINE_HALO_COLOR,
77 GLS_POLY_LINE_HALO_THICKNESS,
79 GLS_POLY_LINE_LAST_INITIALIZER = GLS_POLY_LINE_NORMAL
101 friend class GlsPolyLineEditor;
108 DISTI_DEPRECATED(
"This identifier is forbidden by the C++ standard. Use BaseClass instead." )
279 void ComputeCorner(
GlsPolyLineTriangleList& array,
float thickness,
float cornerRadius,
const Vector& refVert,
const Vector& v1,
const Vector& v2,
const Vector& v3,
const Vector& v4,
const Vector& l1,
const Vector& l2,
bool calculatingHalos =
false );
Definition: dynamic_array.h:79
The Polygon class. Implements Polygons.
Definition: glpolygon.h:55
Definition: gls_color.h:53
Definition: gls_glo_file.h:1241
Definition: gls_poly_line.h:100
GlsColor _haloColor
The color of the halo.
Definition: gls_poly_line.h:239
GlsPolyLineTriangleList _triangles
The triangles to render, derived from vertices and thickness.
Definition: gls_poly_line.h:234
bool Halo()
Definition: gls_poly_line.h:185
void SetValue(int spec, va_list &args) DISTI_METHOD_OVERRIDE
GlsColor HaloColor()
Definition: gls_poly_line.h:192
void Halo(const bool &val)
void CopyProperties(DisplayObject *src) DISTI_METHOD_OVERRIDE
void SetAvailableAttributes(unsigned int value) DISTI_METHOD_OVERRIDE
void SetFillColor(const GlsColor &color) DISTI_METHOD_OVERRIDE
void GetCppInterfaceDescriptionFree(InterfaceListType *array) DISTI_METHOD_OVERRIDE
void SetColor(const GlsColor &color) DISTI_METHOD_OVERRIDE
void DeleteVertexAt(unsigned int index) DISTI_METHOD_OVERRIDE
virtual void SetRecalculate()
void DrawTriangles(GlsPolyLineTriangleList &array)
float _haloThickness
The thickness of the halo in logical units.
Definition: gls_poly_line.h:240
void SetVertices(unsigned int nPoints, Vertex *vertices) DISTI_METHOD_OVERRIDE
void ComputeSegments(GlsPolyLineTriangleList &array, float thickness, bool calculatingHalos=false)
void PreDraw(const OpenGLMatrices &parentMatrices, Culler &culler) DISTI_METHOD_OVERRIDE
static DisplayObject * CreateInstance()
void Draw() DISTI_METHOD_OVERRIDE
void CopyGeometry(DisplayObject *srcArg) DISTI_METHOD_OVERRIDE
float Thickness()
Definition: gls_poly_line.h:175
void ComputeCorner(GlsPolyLineTriangleList &array, float thickness, float cornerRadius, const Vector &refVert, const Vector &v1, const Vector &v2, const Vector &v3, const Vector &v4, const Vector &l1, const Vector &l2, bool calculatingHalos=false)
GlsPolyLineTriangleList _haloTriangles
The triangles to render, derived from vertices and halo thickness.
Definition: gls_poly_line.h:241
void HaloThickness(const float &val)
void HaloColor(const GlsColor &val)
bool _halo
If true, a halo (outline) will be drawn.
Definition: gls_poly_line.h:238
float _thickness
The thickness of the line in logical units.
Definition: gls_poly_line.h:235
bool Hit(float x, float y, float z, float scale, const Vector &directionVector, Vector *collisionPoint) DISTI_METHOD_OVERRIDE
void Scale(float px, float py, float pz, Vertex *anchor, int handleBar) DISTI_METHOD_OVERRIDE
unsigned int _endCapIndex
The index of the triangle forming the end cap.
Definition: gls_poly_line.h:245
DisplayObject * CloneObject(bool generateNames=false) DISTI_METHOD_OVERRIDE
bool _needsRecalculate
If true, the triangles will be recalculated the next frame.
Definition: gls_poly_line.h:243
Vector GlobalNormal()
Definition: gls_poly_line.h:178
InterfaceListType * GetCppInterfaceDescription(InterfaceListType *addToThisList=NULL) DISTI_METHOD_OVERRIDE
void GetExtents(float &minx, float &miny, float &minz, float &maxx, float &maxy, float &maxz) DISTI_METHOD_OVERRIDE
void Rotate(const Vector &orig, float angle, const Vector &axis) DISTI_METHOD_OVERRIDE
Vector _normal
The normal vector (for all triangles).
Definition: gls_poly_line.h:236
float HaloThickness()
Definition: gls_poly_line.h:202
Definition: gls_vertex_array.h:58
Class to contain current OpenGL view, projection and draw matrices.
Definition: util.h:540
The disti::DynamicArray class. A templated array of objects capable of dynamically growing.
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_GLSPOLYLINE_EXPORT
Provides support for creating DLLs.
Definition: gls_poly_line.h:59
An object for managing vertices, texture coordinates, colors and normals for GLPolygon and other disp...
The disti::GLTriMesh class. Implements Triangle Meshes.
Definition: bmpimage.h:46
DistiAttribDict::const_iterator end(const DistiAttribDict &dict)
Definition: disti_metadata.h:975
Definition: gls_poly_line.h:92
GlsPolyLineVertex a
The first vertex of the face.
Definition: gls_poly_line.h:93
GlsPolyLineVertex c
The third vertex of the face.
Definition: gls_poly_line.h:95
GlsPolyLineVertex b
The second vertex of the face.
Definition: gls_poly_line.h:94
Definition: gls_poly_line.h:84
Vector normal
Definition: gls_poly_line.h:87
Vector vertex
Definition: gls_poly_line.h:85
Vector texCoord
Definition: gls_poly_line.h:86