39#ifndef DISTI_INCLUDED_GLS_ANGULAR_SCALE_H
40#define DISTI_INCLUDED_GLS_ANGULAR_SCALE_H
52#if( defined( GLSGEN_EXPORT_GLSANGULARSCALE ) || defined( GLSGEN_IMPORT_GLSANGULARSCALE ) || defined( GLS_EXPORT_GENERATED ) || defined( GLS_IMPORT_GENERATED ) ) \
53 && defined( _MSC_VER )
54# if defined( GLSGEN_EXPORT_GLSANGULARSCALE ) || defined( GLS_EXPORT_GENERATED )
55# define GLSGEN_GLSANGULARSCALE_EXPORT __declspec( dllexport )
57# define GLSGEN_GLSANGULARSCALE_EXPORT __declspec( dllimport )
60# define GLSGEN_GLSANGULARSCALE_EXPORT
65#define LIB_BASE_NAME "gls_angular_scale"
73class GlsGloFileAttribute;
78 GLS_ANGULAR_SCALE_FIRST_VALUE = GLS_LAST_INITIALIZER + 1,
79 GLS_ANGULAR_SCALE_RADII,
80 GLS_ANGULAR_SCALE_DECONFLICT_TICKS,
81 GLS_ANGULAR_SCALE_HALO_ENABLED,
82 GLS_ANGULAR_SCALE_HALO_WIDTH,
83 GLS_ANGULAR_SCALE_HALO_COLOR,
84 GLS_ANGULAR_SCALE_USE_SCALABLE_LINES,
85 GLS_ANGULAR_SCALE_RADIUS,
86 GLS_ANGULAR_SCALE_DATA
113 ,
color( 255, 255, 255, 255 )
208#define GLS_ANGULAR_SCALE_MAX 5
215 friend class GlsAngularScaleEditor;
222 DISTI_DEPRECATED(
"This identifier is forbidden by the C++ standard. Use BaseClass instead." )
362 _geometryRefresh =
true;
444 void DrawScale(
int i,
float haloLength,
float haloThickness );
Definition: disti_metadata.h:87
Definition: callback_caller_base.h:55
Definition: disti_metadata.h:750
void CopyCommonValues(const DistiAttribDict &dict)
Definition: disti_metadata.h:220
Definition: gls_angular_scale.h:491
std::ostream & WriteValue(std::ostream &outstr) DISTI_METHOD_OVERRIDE
bool OkToWrite() const DISTI_METHOD_OVERRIDE
DistiAttributeConnectionGlsAngularScaleDataArray(CallbackMethodCallerBase *callback, const AttributeName &name, GlsAngularScaleDataArray *attribPtr, int arraySize)
Definition: gls_angular_scale.h:502
unsigned int _arraySize
Always GLS_ANGULAR_SCALE_MAX.
Definition: gls_angular_scale.h:494
GlsAngularScaleDataArray * _attribPtr
Observer of the underlying storage for the property.
Definition: gls_angular_scale.h:493
std::istream & ReadValue(std::istream &instr) DISTI_METHOD_OVERRIDE
std::string Type() const DISTI_METHOD_OVERRIDE
Definition: dynamic_array.h:79
The Polygon class. Implements Polygons.
Definition: glpolygon.h:55
Definition: gls_angular_scale.h:91
bool active
Definition: gls_angular_scale.h:96
GlsAngularScaleData(const GlsAngularScaleData &src)
Definition: gls_angular_scale.h:150
virtual std::ostream & WriteValue(std::ostream &outstr)
bool operator==(const GlsAngularScaleData &right) const
float startAngle
Definition: gls_angular_scale.h:99
float length
Definition: gls_angular_scale.h:101
GlsAngularScaleData(bool _active, bool _useLineColor, unsigned int _ticks, float _startAngle, float _interval, float _length, float _thickness, const GlsColor &_color)
Definition: gls_angular_scale.h:127
DistiAttribDict _attribDict
The attribute dictionary for this class' members.
Definition: gls_angular_scale.h:93
float interval
Definition: gls_angular_scale.h:100
float thickness
Definition: gls_angular_scale.h:102
GlsColor color
Definition: gls_angular_scale.h:103
virtual std::istream & ReadValue(std::istream &instr)
GlsAngularScaleData & operator=(const GlsAngularScaleData &src)
Definition: gls_angular_scale.h:159
unsigned int ticks
Definition: gls_angular_scale.h:98
bool useLineColor
Definition: gls_angular_scale.h:97
void InitMetaData()
Create DistiAttributes for this object's members.
bool operator!=(const GlsAngularScaleData &right) const
Definition: gls_angular_scale.h:189
Definition: gls_angular_scale.h:214
void SetLineColor(const GlsColor &color)
Definition: gls_angular_scale.h:268
float _currentLineWidth
Definition: gls_angular_scale.h:411
GlsColor _haloColor
Definition: gls_angular_scale.h:481
void GetScale(int index, GlsAngularScaleData &data)
virtual void DrawGeometry()
void SetValue(int spec, va_list &args) DISTI_METHOD_OVERRIDE
void CurrentLineWidth(const float &newLineWidth)
float Radius()
Definition: gls_angular_scale.h:348
GlsColor HaloColor()
Definition: gls_angular_scale.h:326
void DeconflictTicks(const bool &val)
void SetScale(int index, const GlsAngularScaleData &data)
void CopyProperties(DisplayObject *src) DISTI_METHOD_OVERRIDE
void HaloEnabled(const bool &val)
void CurrentColor(const GlsColor &newColor)
bool _haloEnabled
Definition: gls_angular_scale.h:475
GlsAngularScaleDataArray _scale
Definition: gls_angular_scale.h:469
void SetAvailableAttributes(unsigned int value) DISTI_METHOD_OVERRIDE
void GetCppInterfaceDescriptionFree(InterfaceListType *array) DISTI_METHOD_OVERRIDE
void SetColor(const GlsColor &color) DISTI_METHOD_OVERRIDE
void UseScalableLines(const bool &val)
bool DeconflictTicks()
Definition: gls_angular_scale.h:301
float _haloWidth
Definition: gls_angular_scale.h:478
GlsDisplayList & DisplayList()
Definition: gls_angular_scale.h:374
bool HaloEnabled()
Definition: gls_angular_scale.h:306
DisplayObject * handle(DisplayEvent *ev) DISTI_METHOD_OVERRIDE
void AntiAlias(bool alias) DISTI_METHOD_OVERRIDE
bool _useScalableLines
Definition: gls_angular_scale.h:485
float HaloWidth()
Definition: gls_angular_scale.h:316
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
Vector _radii[2]
Definition: gls_angular_scale.h:460
GlsDisplayList _displayList
Definition: gls_angular_scale.h:422
void DrawScale(int i, float haloLength, float haloThickness)
void HaloColor(const GlsColor &val)
GlsColor _currentColor
Definition: gls_angular_scale.h:407
bool Hit(float x, float y, float z, float scale, const Vector &directionVector, Vector *collisionPoint) DISTI_METHOD_OVERRIDE
void Radius(const float &val)
void GetTransformedExtents(Vector &min, Vector &max, const GlsMatrixType &matrix, bool resetMinMax) DISTI_METHOD_OVERRIDE
void CalculateRadiiUnit()
Vector _radiiUnit[2]
Definition: gls_angular_scale.h:463
void Scale(float px, float py, float pz, Vertex *anchor, int handleBar) DISTI_METHOD_OVERRIDE
bool _deconflictTicks
Definition: gls_angular_scale.h:472
DisplayObject * CloneObject(bool generateNames=false) DISTI_METHOD_OVERRIDE
void HaloWidth(const float &val)
void InvalidateGeometry()
Definition: gls_angular_scale.h:367
bool _currentLineWidthSet
Definition: gls_angular_scale.h:419
bool UseScalableLines()
Definition: gls_angular_scale.h:337
bool _needsRecalculate
Definition: gls_angular_scale.h:379
void UpdateBoundingVolume() DISTI_METHOD_OVERRIDE
bool _currentColorSet
Definition: gls_angular_scale.h:415
float _magnitude[2]
Definition: gls_angular_scale.h:466
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
Vertex * Vertices() DISTI_METHOD_OVERRIDE
bool TickNeeded(int currentLevel, float currentAngle)
Definition: gls_color.h:53
Definition: gls_display_list.h:51
void Invalidate()
Definition: gls_display_list.h:85
Definition: gls_glo_file.h:1241
Definition: gls_quad_storage.h:60
Class to contain current OpenGL view, projection and draw matrices.
Definition: util.h:540
The disti::GLPolygon class. Implements Polygons.
#define GLSGEN_GLSANGULARSCALE_EXPORT
Provides support for creating DLLs.
Definition: gls_angular_scale.h:60
#define GLS_ANGULAR_SCALE_MAX
The maximum number of unique tick mark types.
Definition: gls_angular_scale.h:208
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
The disti::GlsDisplayList class.
The disti::GlsQuadListVC_3D and GlsQuadListVCT_2D classes.
Definition: bmpimage.h:46
GlsAngularScaleData GlsAngularScaleDataArray[5]
Typedef for one GlsAngularScale worth of scale data.
Definition: gls_angular_scale.h:210