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 );
137 bool FirstHit(
const Vector& point,
const Vector& directionVector,
Vector* collisionPoint );
146 bool BestHit(
const Vector& point,
const Vector& directionVector,
Vector* collisionPoint );
151 friend class GlsSphereEditor;
158 GLS_EXPORT
GlsSphere(
float x,
float y,
float z );
161 GLS_EXPORT
GlsSphere(
bool newGlsSphere =
true );
200 virtual GLS_EXPORT
void GetExtents(
float& x,
float& y,
float& z,
float& x1,
float& y1,
float& z1 );
203 virtual GLS_EXPORT
void Draw(
void );
206 virtual GLS_EXPORT
bool Hit(
float x,
float y,
float z,
float scale,
const Vector& directionVector,
Vector* collisionPoint );
212 virtual GLS_EXPORT
void Scale(
float px,
float py,
float pz,
Vertex* anchor,
int handleBar );
230 virtual GLS_EXPORT
void Rotate(
const Vector& orig,
float angle,
const Vector& axis );
287 virtual GLS_EXPORT
void Slices(
unsigned int slices );
292 virtual GLS_EXPORT
unsigned int Slices();
297 virtual GLS_EXPORT
void Stacks(
unsigned int stacks );
302 virtual GLS_EXPORT
unsigned int Stacks();
327 #define DEF_SPHERE_MAPPING GLS_SPHERE_SPHERICAL_MAP
334 virtual GLS_EXPORT ~DistiAttributeSphereMappingTypeEnum();
virtual void SetValue(int spec, va_list &args)
virtual float StackStartAngle()
virtual void Rotate(const Vector &orig, float angle, const Vector &axis)
glsSphereMapping_e
Definition: gls_sphere.h:59
virtual float SliceStartAngle()
virtual unsigned int Stacks()
Definition: dynamic_array.h:62
The disti::DynamicArray class. A templated array of objects capable of dynamically growing...
virtual unsigned int Slices()
glsSphereMapping_e TextureMappingType(void)
virtual bool GetPlaneVectorPoints(Vertex &p1, Vertex &p2, Vertex &p3, Vertex &planeVector)
glsSphereMapping_e _textureMappingType
Definition: gls_sphere.h:105
virtual void SetFillColor(const GlsColor &color)
virtual GlsColor GetFillColor(void)
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:982
The disti::DisplayObject class and global enumerations.
virtual void GetExtents(float &x, float &y, float &z, float &x1, float &y1, float &z1)
float _sliceStartDeg
Definition: gls_sphere.h:96
virtual void SetAvailableAttributes(unsigned int value)
virtual GlsColor GetFillColor(void)
Definition: disti_metadata.h:904
virtual int TextureIndex(void)
virtual DisplayObject * CloneObject(bool generateNames=false)
void SetResizeRecalculate()
GLS_Sphere_Initializers
Definition: gls_sphere.h:68
Definition: gls_color.h:53
virtual void Rotate(float angle, int axis=Z_AXIS)
Definition: gls_sphere.h:330
GlsColor _objectColor
Definition: gls_sphere.h:94
virtual void CalculateTextureCoordinates(void)
bool _needsResize
Definition: gls_sphere.h:103
virtual void CopyGeometry(DisplayObject *src)
float _stackStartDeg
Definition: gls_sphere.h:97
virtual void GetCppInterfaceDescriptionFree(InterfaceListType *array)
void Scale(int handleBar, float px, float py, Vertex *anchor=NULL)
Definition: display.h:1112
Definition: gls_sphere.h:61
virtual void GetRadii(Vector &r1, Vector &r2, Vector &r3)
virtual void CopyProperties(DisplayObject *src)
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:79
virtual bool Hit(float x, float y, float z, float scale, const Vector &directionVector, Vector *collisionPoint)
Definition: bmpimage.h:46
void SetFillColor(unsigned char r, unsigned char g, unsigned char b, unsigned char a)
Definition: display.h:664
virtual float SliceEndAngle()
virtual void Scale(float px, float py, float pz, Vertex *anchor, int handleBar)
virtual InterfaceListType * GetCppInterfaceDescription(InterfaceListType *addToThisList=NULL)