40#ifndef _GLS_LINEAR_SCALE_H
41#define _GLS_LINEAR_SCALE_H
53#if( defined( GLSGEN_EXPORT_GLSLINEARSCALE ) || defined( GLSGEN_IMPORT_GLSLINEARSCALE ) || defined( GLS_EXPORT_GENERATED ) || defined( GLS_IMPORT_GENERATED ) ) \
54 && defined( _MSC_VER )
55# if defined( GLSGEN_EXPORT_GLSLINEARSCALE ) || defined( GLS_EXPORT_GENERATED )
56# define GLSGEN_GLSLINEARSCALE_EXPORT __declspec( dllexport )
58# define GLSGEN_GLSLINEARSCALE_EXPORT __declspec( dllimport )
61# define GLSGEN_GLSLINEARSCALE_EXPORT
66#define LIB_BASE_NAME "gls_linear_scale"
75 GLS_LINEAR_SCALE_FIRST_VALUE = GLS_LAST_INITIALIZER + 1,
76 GLS_LINEAR_SCALE_RADII,
77 GLS_LINEAR_SCALE_DECONFLICT_TICKS,
78 GLS_LINEAR_SCALE_HALO_ENABLED,
79 GLS_LINEAR_SCALE_HALO_WIDTH,
80 GLS_LINEAR_SCALE_HALO_COLOR,
81 GLS_LINEAR_SCALE_TICK_ANCHOR,
82 GLS_LINEAR_SCALE_USE_SCALABLE_LINES,
90 GLS_TICK_ANCHOR_BOTTOM,
91 GLS_TICK_ANCHOR_CENTER
118 ,
color( 255, 255, 255, 255 )
136 float _startingOffset,
209#define GLS_LINEAR_SCALE_MAX 5
220 friend class GlsLinearScaleEditor;
227 DISTI_DEPRECATED(
"This identifier is forbidden by the C++ standard. Use BaseClass instead." )
335 _geometryRefresh =
true;
427 void DrawScale(
int i,
float haloLength,
float haloThickness );
Definition: disti_metadata.h:87
Definition: callback_caller_base.h:56
Definition: disti_metadata.h:734
void CopyCommonValues(const DistiAttribDict &dict)
Definition: disti_metadata.h:220
Definition: gls_linear_scale.h:474
GlsLinearScaleDataArray * _attribPtr
Observer of the underlying storage for the property.
Definition: gls_linear_scale.h:476
virtual std::istream & ReadValue(std::istream &instr) DISTI_METHOD_OVERRIDE
unsigned int _arraySize
Always GLS_LINEAR_SCALE_MAX.
Definition: gls_linear_scale.h:477
virtual bool OkToWrite() const DISTI_METHOD_OVERRIDE
DistiAttributeConnectionGlsLinearScaleDataArray(CallbackMethodCallerBase *callback, const AttributeName &name, GlsLinearScaleDataArray *attribPtr, int arraySize)
Definition: gls_linear_scale.h:485
virtual std::ostream & WriteValue(std::ostream &outstr) DISTI_METHOD_OVERRIDE
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_glo_file.h:1243
Definition: gls_linear_scale.h:96
bool active
True if this scale is active.
Definition: gls_linear_scale.h:101
float length
Length of ticks in logical units.
Definition: gls_linear_scale.h:106
GlsLinearScaleData(const GlsLinearScaleData &src)
Definition: gls_linear_scale.h:155
bool operator==(const GlsLinearScaleData &right) const
DistiAttribDict _attribDict
The attribute dictionary for this class' members.
Definition: gls_linear_scale.h:98
float interval
Interval between ticks in logical units.
Definition: gls_linear_scale.h:105
float thickness
Thickness of ticks in logical units.
Definition: gls_linear_scale.h:107
GlsColor color
Color to draw ticks if line color is not being used.
Definition: gls_linear_scale.h:108
float startingOffset
Start offset in logical units.
Definition: gls_linear_scale.h:104
unsigned int ticks
Number of ticks on this scale.
Definition: gls_linear_scale.h:103
bool operator!=(const GlsLinearScaleData &right) const
Definition: gls_linear_scale.h:190
std::istream & ReadValue(std::istream &instr)
std::ostream & WriteValue(std::ostream &outstr)
bool useLineColor
True if this scale draws with line color.
Definition: gls_linear_scale.h:102
void InitMetaData()
Create DistiAttributes for this object's members.
GlsLinearScaleData & operator=(const GlsLinearScaleData &src)
Definition: gls_linear_scale.h:164
GlsLinearScaleData(bool _active, bool _useLineColor, unsigned int _ticks, float _startingOffset, float _interval, float _length, float _thickness, const GlsColor &_color)
Definition: gls_linear_scale.h:132
Definition: gls_linear_scale.h:219
virtual InterfaceListType * GetCppInterfaceDescription(InterfaceListType *addToThisList=NULL) DISTI_METHOD_OVERRIDE
float _currentLineWidth
Definition: gls_linear_scale.h:385
GlsColor _haloColor
Definition: gls_linear_scale.h:461
virtual void SetAvailableAttributes(unsigned int value) DISTI_METHOD_OVERRIDE
virtual void Draw() DISTI_METHOD_OVERRIDE
virtual void GetCppInterfaceDescriptionFree(InterfaceListType *array) DISTI_METHOD_OVERRIDE
virtual void DrawGeometry()
void CurrentLineWidth(const float &newLineWidth)
GlsColor HaloColor()
Definition: gls_linear_scale.h:314
virtual void SetColor(const GlsColor &color) DISTI_METHOD_OVERRIDE
virtual DisplayObject * CloneObject(bool generateNames=false) DISTI_METHOD_OVERRIDE
void HaloEnabled(const bool &val)
void CurrentColor(const GlsColor &newColor)
GlsTickAnchor TickAnchor()
Definition: gls_linear_scale.h:324
bool _haloEnabled
Definition: gls_linear_scale.h:455
bool TickNeeded(int currentLevel, float currentOffset)
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
void UseScalableLines(const bool &val)
bool DeconflictTicks()
Definition: gls_linear_scale.h:289
float _haloWidth
Definition: gls_linear_scale.h:458
virtual void SetValue(int spec, va_list &args) DISTI_METHOD_OVERRIDE
GlsDisplayList & DisplayList()
Definition: gls_linear_scale.h:359
virtual void Rotate(const Vector &orig, float angle, const Vector &axis) DISTI_METHOD_OVERRIDE
bool HaloEnabled()
Definition: gls_linear_scale.h:294
bool _useScalableLines
Definition: gls_linear_scale.h:468
float HaloWidth()
Definition: gls_linear_scale.h:304
static DisplayObject * CreateInstance()
Vector _radii[2]
Definition: gls_linear_scale.h:443
virtual void CopyGeometry(DisplayObject *srcArg) DISTI_METHOD_OVERRIDE
GlsDisplayList _displayList
Definition: gls_linear_scale.h:396
void DrawScale(int i, float haloLength, float haloThickness)
void HaloColor(const GlsColor &val)
GlsColor _currentColor
Definition: gls_linear_scale.h:381
void TickAnchor(const GlsTickAnchor val)
virtual void Scale(float px, float py, float pz, Vertex *anchor, int handleBar) DISTI_METHOD_OVERRIDE
virtual void CopyProperties(DisplayObject *src) DISTI_METHOD_OVERRIDE
bool _deconflictTicks
Definition: gls_linear_scale.h:452
void GetScale(int index, GlsLinearScaleData &data)
Vector _radiiNormalized[2]
Definition: gls_linear_scale.h:446
void HaloWidth(const float &val)
void InvalidateGeometry()
Definition: gls_linear_scale.h:352
bool _currentLineWidthSet
Definition: gls_linear_scale.h:393
bool UseScalableLines()
Definition: gls_linear_scale.h:344
bool _currentColorSet
Definition: gls_linear_scale.h:389
GlsTickAnchor _tickAnchor
Definition: gls_linear_scale.h:464
void SetScale(int index, const GlsLinearScaleData &data)
GlsLinearScaleDataArray _scale
Definition: gls_linear_scale.h:449
Definition: gls_quad_storage.h:64
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 GLS_LINEAR_SCALE_MAX
The maximum number of unique tick mark types.
Definition: gls_linear_scale.h:209
#define GLSGEN_GLSLINEARSCALE_EXPORT
Provides support for creating DLLs.
Definition: gls_linear_scale.h:61
The disti::GlsQuadListVC_3D and GlsQuadListVCT_2D classes.
Force inclusion of the DirectShow library.
Definition: bmpimage.h:47
GlsLinearScaleData GlsLinearScaleDataArray[5]
Typedef for one GlsLinearScale worth of scale data.
Definition: gls_linear_scale.h:211
GlsTickAnchor
Tick anchor behavior.
Definition: gls_linear_scale.h:88