40 #ifndef _GLS_ANGULAR_SCALE_H 
   41 #define _GLS_ANGULAR_SCALE_H 
   53 #if( defined( GLSGEN_EXPORT_GLSANGULARSCALE ) || defined( GLSGEN_IMPORT_GLSANGULARSCALE ) || defined( GLS_EXPORT_GENERATED ) || defined( GLS_IMPORT_GENERATED ) ) \ 
   54     && defined( _MSC_VER ) 
   55 #    if defined( GLSGEN_EXPORT_GLSANGULARSCALE ) || defined( GLS_EXPORT_GENERATED ) 
   56 #        define GLSGEN_GLSANGULARSCALE_EXPORT __declspec( dllexport ) 
   58 #        define GLSGEN_GLSANGULARSCALE_EXPORT __declspec( dllimport ) 
   61 #    define GLSGEN_GLSANGULARSCALE_EXPORT 
   65 #define LIB_BASE_NAME "gls_angular_scale" 
   73 class 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
 
  106         , useLineColor( false )
 
  112         , color( 255, 255, 255, 255 )
 
  127         , useLineColor( _useLineColor )
 
  129         , startAngle( _startAngle )
 
  130         , interval( _interval )
 
  132         , thickness( _thickness )
 
  138     GlsAngularScaleData( 
const GlsAngularScaleData& src )
 
  143     ~GlsAngularScaleData( 
void )
 
  147     bool GLSGEN_GLSANGULARSCALE_EXPORT operator==( 
const GlsAngularScaleData& right ) 
const;
 
  149     bool GLSGEN_GLSANGULARSCALE_EXPORT operator!=( 
const GlsAngularScaleData& right )
 const 
  151         return !( this->operator==( right ) );
 
  154     void GLSGEN_GLSANGULARSCALE_EXPORT InitMetaData( 
void );
 
  157     virtual GLSGEN_GLSANGULARSCALE_EXPORT std::ostream& WriteValue( std::ostream& outstr );
 
  160     virtual GLSGEN_GLSANGULARSCALE_EXPORT std::istream& ReadValue( std::istream& instr );
 
  163 #define GLS_ANGULAR_SCALE_MAX 5 
  165 typedef GlsAngularScaleData GlsAngularScaleDataArray[ GLS_ANGULAR_SCALE_MAX ];
 
  170     friend class GlsAngularScaleEditor;
 
  182     GLSGEN_GLSANGULARSCALE_EXPORT 
GlsAngularScale( 
bool generateInstance = 
false );
 
  189     GLSGEN_GLSANGULARSCALE_EXPORT GlsAngularScale( 
const GlsAngularScale& that, 
const bool generateNames );
 
  194     static GLSGEN_GLSANGULARSCALE_EXPORT 
DisplayObject* CreateInstance();
 
  209     virtual GLSGEN_GLSANGULARSCALE_EXPORT 
void Draw( 
void );
 
  211     virtual GLSGEN_GLSANGULARSCALE_EXPORT 
void Scale( 
float px, 
float py, 
float pz, 
Vertex* anchor, 
int handleBar );
 
  212     virtual GLSGEN_GLSANGULARSCALE_EXPORT 
void Rotate( 
const Vector& orig, 
float angle, 
const Vector& axis );
 
  213     virtual GLSGEN_GLSANGULARSCALE_EXPORT 
bool Hit( 
float x, 
float y, 
float z, 
float scale, 
const Vector& directionVector, 
Vector* collisionPoint );
 
  216     virtual GLSGEN_GLSANGULARSCALE_EXPORT 
void    GetExtents( 
float& minx, 
float& miny, 
float& minz, 
float& maxx, 
float& maxy, 
float& maxz );
 
  220     virtual GLSGEN_GLSANGULARSCALE_EXPORT 
void SetColor( 
const GlsColor& color );
 
  224     virtual GLSGEN_GLSANGULARSCALE_EXPORT 
void AntiAlias( 
bool alias );
 
  229     virtual void SetValue( 
int spec, va_list& args );
 
  265     GLSGEN_GLSANGULARSCALE_EXPORT 
void HaloEnabled( 
const bool& val );
 
  275     GLSGEN_GLSANGULARSCALE_EXPORT 
void HaloWidth( 
const float& val );
 
  302     GLSGEN_GLSANGULARSCALE_EXPORT 
float Radius( 
void )
 
  310     GLSGEN_GLSANGULARSCALE_EXPORT 
void Radius( 
const float& val );
 
  314     GLSGEN_GLSANGULARSCALE_EXPORT 
void InvalidateGeometry( 
void ) { _geometryRefresh = 
true; }
 
  374     bool TickNeeded( 
int currentLevel, 
float currentAngle );
 
  384     void                                          DrawScale( 
int i, 
float haloLength, 
float haloThickness );
 
  433     GlsAngularScaleDataArray* _attribPtr;
 
  434     unsigned int              _arraySize;
 
  439         , _attribPtr( attribPtr )
 
  440         , _arraySize( arraySize )
 
  446     virtual std::ostream& 
WriteValue( std::ostream& outstr );
 
  447     virtual std::istream& 
ReadValue( std::istream& instr );
 
virtual void GetExtents(float &minx, float &miny, float &minz, float &maxx, float &maxy, float &maxz)
virtual void PreDraw(const OpenGLMatrices &parentMatrices, Culler &culler)
void SetScale(int index, const GlsAngularScaleData &data)
float thickness
Definition: gls_angular_scale.h:101
Definition: gls_angular_scale.h:89
virtual std::ostream & WriteValue(std::ostream &outstr)
float HaloWidth(void)
Definition: gls_angular_scale.h:270
void Invalidate(void)
Definition: gls_display_list.h:82
void DrawScale(int i, float haloLength, float haloThickness)
Definition: dynamic_array.h:62
bool _haloEnabled
Definition: gls_angular_scale.h:415
Class to contain current OpenGL view, projection and draw matrices. 
Definition: util.h:278
GlsColor _haloColor
Definition: gls_angular_scale.h:421
bool _needsRecalculate
Definition: gls_angular_scale.h:325
virtual void UpdateBoundingVolume(void)
void GetScale(int index, GlsAngularScaleData &data)
The disti::GlsQuadListVC_3D and GlsQuadListVCT_2D classes. 
virtual void SetAvailableAttributes(unsigned int value)
The Polygon class. Implements Polygons. 
Definition: glpolygon.h:55
virtual void SetValue(int spec, va_list &args)
bool _useScalableLines
Definition: gls_angular_scale.h:425
GlsDisplayList _displayList
Definition: gls_angular_scale.h:365
virtual void CopyGeometry(DisplayObject *srcArg)
The disti::GLPolygon class. Implements Polygons. 
bool HaloEnabled(void)
Definition: gls_angular_scale.h:260
void CalculateRadiiUnit(void)
virtual void GetCppInterfaceDescriptionFree(InterfaceListType *array)
bool UseScalableLines(void)
Definition: gls_angular_scale.h:291
float length
Definition: gls_angular_scale.h:100
GlsDisplayList & DisplayList(void)
Definition: gls_angular_scale.h:320
GlsColor color
Definition: gls_angular_scale.h:102
float startAngle
Definition: gls_angular_scale.h:98
Definition: gls_display_list.h:50
Definition: gls_glo_file.h:835
void CurrentColor(const GlsColor &newColor)
virtual DisplayObject * CloneObject(bool generateNames=false)
virtual bool Hit(float x, float y, float z, float scale, const Vector &directionVector, Vector *collisionPoint)
GlsColor _currentColor
Definition: gls_angular_scale.h:350
float _haloWidth
Definition: gls_angular_scale.h:418
bool _currentLineWidthSet
Definition: gls_angular_scale.h:362
virtual ~GlsAngularScale()
Definition: disti_metadata.h:174
void InvalidateGeometry(void)
Definition: gls_angular_scale.h:317
Definition: gls_color.h:53
Definition: disti_metadata.h:667
Definition: callback_caller_base.h:55
bool TickNeeded(int currentLevel, float currentAngle)
bool _currentColorSet
Definition: gls_angular_scale.h:358
GlsColor HaloColor(void)
Definition: gls_angular_scale.h:280
virtual Vertex * Vertices()
Vector _radii[2]
Definition: gls_angular_scale.h:400
virtual void DrawGeometry(void)
bool useLineColor
Definition: gls_angular_scale.h:96
GlsAngularScaleDataArray _scale
Definition: gls_angular_scale.h:409
void CurrentLineWidth(const float &newLineWidth)
virtual void SetColor(const GlsColor &color)
float Radius(void)
Definition: gls_angular_scale.h:302
virtual bool OkToWrite() const 
virtual std::istream & ReadValue(std::istream &instr)
virtual void Rotate(const Vector &orig, float angle, const Vector &axis)
virtual void CopyProperties(DisplayObject *src)
virtual void GetTransformedExtents(Vector &min, Vector &max, const GlsMatrixType &matrix, bool resetMinMax)
virtual bool AntiAlias(void)
DisplayObject * handle(DisplayEvent *ev)
bool DeconflictTicks(void)
Definition: gls_angular_scale.h:255
unsigned int ticks
Definition: gls_angular_scale.h:97
bool active
Definition: gls_angular_scale.h:95
virtual void Scale(float px, float py, float pz, Vertex *anchor, int handleBar)
virtual InterfaceListType * GetCppInterfaceDescription(InterfaceListType *addToThisList=NULL)
float interval
Definition: gls_angular_scale.h:99
Macros and helper code to determine what subset of C++11/14/17 is available. 
Definition: disti_metadata.h:79
Vector _radiiUnit[2]
Definition: gls_angular_scale.h:403
Definition: gls_angular_scale.h:430
bool _deconflictTicks
Definition: gls_angular_scale.h:412
Definition: gls_quad_storage.h:63
void RecomputeVertices(void)
Definition: bmpimage.h:46
The disti::GlsDisplayList class. 
Definition: gls_angular_scale.h:168
float _magnitude[2]
Definition: gls_angular_scale.h:406
float _currentLineWidth
Definition: gls_angular_scale.h:354
void MagnitudeChanged(void)