49 #define DEF_SPHERE_STACKS 10
50 #define DEF_SPHERE_SLICES 10
51 #define DEF_SPHERE_SLICE_START 0.0f
52 #define DEF_SPHERE_SLICE_END 360.0f
53 #define DEF_SPHERE_STACK_START 0.0f
54 #define DEF_SPHERE_STACK_END 180.0f
70 GLS_SPHERE_MAPPING = GLS_LAST_INITIALIZER + 1,
74 GLS_SPHERE_SLICE_START,
76 GLS_SPHERE_STACK_START,
86 void CommonConstructorInit();
116 GLS_EXPORT
void Resize(
void );
119 virtual GLS_EXPORT
void SetValue(
int spec, va_list& args ) DISTI_METHOD_OVERRIDE;
137 bool FirstHit(
const Vector& point,
const Vector& directionVector,
Vector* collisionPoint );
146 bool BestHit(
const Vector& point,
const Vector& directionVector,
Vector* collisionPoint );
149 DISTI_DEPRECATED(
"This identifier is forbidden by the C++ standard. Use BaseClass instead." )
153 friend class GlsSphereEditor;
160 GLS_EXPORT
GlsSphere(
float x,
float y,
float z );
163 GLS_EXPORT
GlsSphere(
bool newGlsSphere = true );
181 virtual GLS_EXPORT
void TextureIndex(
int index ) DISTI_METHOD_OVERRIDE;
202 virtual GLS_EXPORT
void GetExtents(
float& x,
float& y,
float& z,
float& x1,
float& y1,
float& z1 ) DISTI_METHOD_OVERRIDE;
205 virtual GLS_EXPORT
void Draw(
void ) DISTI_METHOD_OVERRIDE;
208 virtual GLS_EXPORT
bool Hit(
float x,
float y,
float z,
float scale, const
Vector& directionVector,
Vector* collisionPoint ) DISTI_METHOD_OVERRIDE;
211 using BaseClass::
Scale;
214 virtual GLS_EXPORT
void Scale(
float px,
float py,
float pz,
Vertex* anchor,
int handleBar ) DISTI_METHOD_OVERRIDE;
232 virtual GLS_EXPORT
void Rotate( const
Vector& orig,
float angle, const
Vector& axis ) DISTI_METHOD_OVERRIDE;
238 virtual GLS_EXPORT
void SetFillColor( const
GlsColor& color ) DISTI_METHOD_OVERRIDE;
244 virtual GLS_EXPORT
GlsColor GetFillColor(
void ) DISTI_METHOD_OVERRIDE;
289 virtual GLS_EXPORT
void Slices(
unsigned int slices );
294 virtual GLS_EXPORT
unsigned int Slices();
299 virtual GLS_EXPORT
void Stacks(
unsigned int stacks );
304 virtual GLS_EXPORT
unsigned int Stacks();
329 #define DEF_SPHERE_MAPPING GLS_SPHERE_SPHERICAL_MAP
336 virtual GLS_EXPORT ~DistiAttributeSphereMappingTypeEnum();
virtual float StackStartAngle()
#define DISTI_DEPRECATED(msg)
Defines whether this compiler supports the C++14 deprecated attribute.
Definition: gls_cpp_lang_support.h:436
glsSphereMapping_e
Definition: gls_sphere.h:59
virtual float SliceStartAngle()
virtual unsigned int Stacks()
Definition: dynamic_array.h:66
virtual void CalculateTextureCoordinates(void) override
The disti::DynamicArray class. A templated array of objects capable of dynamically growing...
virtual void SetFillColor(const GlsColor &color) override
virtual unsigned int Slices()
glsSphereMapping_e TextureMappingType(void)
virtual void CopyProperties(DisplayObject *src) override
virtual InterfaceListType * GetCppInterfaceDescription(InterfaceListType *addToThisList=NULL) override
glsSphereMapping_e _textureMappingType
Definition: gls_sphere.h:105
virtual void CopyGeometry(DisplayObject *src) override
virtual DisplayObject * CloneObject(bool generateNames=false) override
The Color class: Implements a 4 component RGBA color.
virtual float StackEndAngle()
virtual void SetRadii(const Vector &r1, const Vector &r2, const Vector &r3)
unsigned int _stacks
Definition: gls_sphere.h:99
A file for all GL Studio files to include.
Definition: gls_glo_file.h:988
The disti::DisplayObject class and global enumerations.
virtual void SetAvailableAttributes(unsigned int value) override
float _sliceStartDeg
Definition: gls_sphere.h:96
Definition: disti_metadata.h:894
virtual void GetCppInterfaceDescriptionFree(InterfaceListType *array) override
virtual int TextureIndex(void)
virtual void Draw(void) override
void SetResizeRecalculate()
GLS_Sphere_Initializers
Definition: gls_sphere.h:68
Definition: gls_color.h:53
virtual void GetExtents(float &x, float &y, float &z, float &x1, float &y1, float &z1) override
Definition: gls_sphere.h:332
GlsColor _objectColor
Definition: gls_sphere.h:94
bool _needsResize
Definition: gls_sphere.h:103
virtual bool GetPlaneVectorPoints(Vertex &p1, Vertex &p2, Vertex &p3, Vertex &planeVector) override
virtual GlsColor GetFillColor(void) override
virtual void SetValue(int spec, va_list &args) override
float _stackStartDeg
Definition: gls_sphere.h:97
Definition: gls_sphere.h:61
virtual void Rotate(const Vector &orig, float angle, const Vector &axis) override
virtual void GetRadii(Vector &r1, Vector &r2, Vector &r3)
unsigned int _slices
Definition: gls_sphere.h:99
Definition: gls_sphere.h:82
Macros and helper code to determine what subset of C++11/14/17 is available.
bool _needsRecalculate
Definition: gls_sphere.h:102
Definition: gls_sphere.h:62
Definition: disti_metadata.h:85
Definition: bmpimage.h:46
virtual void Scale(float px, float py, float pz, Vertex *anchor, int handleBar) override
virtual float SliceEndAngle()
virtual bool Hit(float x, float y, float z, float scale, const Vector &directionVector, Vector *collisionPoint) override