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
71 GLS_SPHERE_MAPPING=GLS_LAST_INITIALIZER+1,
75 GLS_SPHERE_SLICE_START,
77 GLS_SPHERE_STACK_START,
88 void CommonConstructorInit();
120 GLS_EXPORT
void Resize(
void);
123 virtual GLS_EXPORT
void SetValue(
int spec,va_list &args);
129 virtual GLS_EXPORT
void SetFromGloData(GlsGloFileAttribute &data);
141 bool FirstHit(
const Vector &point,
const Vector& directionVector,
Vector *collisionPoint);
150 bool BestHit(
const Vector &point,
const Vector& directionVector,
Vector *collisionPoint);
154 friend class GlsSphereEditor;
161 GLS_EXPORT
GlsSphere(
float x,
float y,
float z);
164 GLS_EXPORT
GlsSphere(
bool newGlsSphere =
true);
203 virtual GLS_EXPORT
void GetExtents(
float &x,
float &y,
float &z,
float &x1,
float &y1,
float &z1);
206 virtual GLS_EXPORT
void Draw(
void);
209 virtual GLS_EXPORT
bool Hit(
float x,
float y,
float z,
float scale,
const Vector& directionVector,
Vector *collisionPoint);
215 virtual GLS_EXPORT
void Scale(
float px,
float py,
float pz,
Vertex *anchor,
int handleBar);
290 virtual GLS_EXPORT
void Slices(
unsigned int slices);
295 virtual GLS_EXPORT
unsigned int Slices();
300 virtual GLS_EXPORT
void Stacks(
unsigned int stacks);
305 virtual GLS_EXPORT
unsigned int Stacks();
330 #define DEF_SPHERE_MAPPING GLS_SPHERE_SPHERICAL_MAP
337 virtual GLS_EXPORT ~DistiAttributeSphereMappingTypeEnum();
virtual void SetValue(int spec, va_list &args)
virtual float StackStartAngle()
virtual void SetFillColor(const glsColor &color)
virtual void Rotate(const Vector &orig, float angle, const Vector &axis)
glsSphereMapping_e
Definition: gls_sphere.h:60
glsColor _objectColor
Definition: gls_sphere.h:97
virtual float SliceStartAngle()
virtual unsigned int Stacks()
Definition: dynamic_array.h:63
The disti::DynamicArray class. A templated array of objects capable of dynamically growing...
virtual unsigned int Slices()
glsSphereMapping_e TextureMappingType(void)
virtual glsColor GetFillColor(void)
virtual bool GetPlaneVectorPoints(Vertex &p1, Vertex &p2, Vertex &p3, Vertex &planeVector)
glsSphereMapping_e _textureMappingType
Definition: gls_sphere.h:108
The Color class: Implements a 4 component RGBA color.
virtual float StackEndAngle()
virtual void SetRadii(const Vector &r1, const Vector &r2, const Vector &r3)
virtual glsColor GetFillColor(void)
unsigned int _stacks
Definition: gls_sphere.h:102
A file for all GL Studio files to include.
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:99
virtual void SetAvailableAttributes(unsigned int value)
Definition: disti_metadata.h:902
virtual int TextureIndex(void)
virtual DisplayObject * CloneObject(bool generateNames=false)
void SetResizeRecalculate()
GLS_Sphere_Initializers
Definition: gls_sphere.h:69
virtual void Rotate(float angle, int axis=Z_AXIS)
Definition: gls_sphere.h:333
Definition: gls_color.h:54
virtual void CalculateTextureCoordinates(void)
bool _needsResize
Definition: gls_sphere.h:106
virtual void CopyGeometry(DisplayObject *src)
float _stackStartDeg
Definition: gls_sphere.h:100
virtual void GetCppInterfaceDescriptionFree(InterfaceListType *array)
void Scale(int handleBar, float px, float py, Vertex *anchor=NULL)
Definition: display.h:1111
Definition: gls_sphere.h:62
virtual void GetRadii(Vector &r1, Vector &r2, Vector &r3)
virtual void CopyProperties(DisplayObject *src)
unsigned int _slices
Definition: gls_sphere.h:102
Definition: gls_sphere.h:83
Macros and helper code to determine what subset of C++11/14/17 is available.
bool _needsRecalculate
Definition: gls_sphere.h:105
Definition: gls_sphere.h:63
Definition: disti_metadata.h:83
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:663
virtual float SliceEndAngle()
virtual void Scale(float px, float py, float pz, Vertex *anchor, int handleBar)
virtual InterfaceListType * GetCppInterfaceDescription(InterfaceListType *addToThisList=NULL)