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();
138 bool FirstHit(
const Vector& point,
const Vector& directionVector,
Vector* collisionPoint );
147 bool BestHit(
const Vector& point,
const Vector& directionVector,
Vector* collisionPoint );
150 DISTI_DEPRECATED(
"This identifier is forbidden by the C++ standard. Use BaseClass instead." )
154 friend class GlsSphereEditor;
313#define DEF_SPHERE_MAPPING GLS_SPHERE_SPHERICAL_MAP
Definition: disti_metadata.h:87
Definition: disti_metadata.h:1005
void(containerClass::* SetMethodType)(glsSphereMapping_e)
Typedef for the set method function pointer.
Definition: disti_metadata.h:1007
glsSphereMapping_e(containerClass::* GetMethodType)()
Typedef for the get method function pointer.
Definition: disti_metadata.h:1008
Definition: gls_sphere.h:317
DistiAttributeSphereMappingTypeEnum(GlsSphere *frame, SetMethodType setMethod, GetMethodType getMethod, const AttributeName &name)
Definition: dynamic_array.h:79
Definition: gls_color.h:54
Definition: gls_glo_file.h:1243
Definition: gls_sphere.h:83
float _stackEndDeg
0-360, where 0 is the positive x-axis of the sphere.
Definition: gls_sphere.h:99
virtual void GetRadii(Vector &r1, Vector &r2, Vector &r3)
glsSphereMapping_e _textureMappingType
Texture mapping method.
Definition: gls_sphere.h:107
virtual DisplayObject * CloneObject(bool generateNames=false) override
Vector _radii[3]
Sphere radii.
Definition: gls_sphere.h:92
virtual float SliceStartAngle()
virtual float SliceEndAngle()
bool _needsResize
True when the sphere needs to be resized.
Definition: gls_sphere.h:105
virtual void SetRadii(const Vector &r1, const Vector &r2, const Vector &r3)
virtual float StackStartAngle()
virtual void Rotate(const Vector &orig, float angle, const Vector &axis) override
virtual unsigned int Slices()
virtual void SetAvailableAttributes(unsigned int value) override
virtual bool GetPlaneVectorPoints(Vertex &p1, Vertex &p2, Vertex &p3, Vertex &planeVector) override
virtual float StackEndAngle()
virtual void GetCppInterfaceDescriptionFree(InterfaceListType *array) override
virtual void SetValue(int spec, va_list &args) override
virtual GlsColor GetFillColor() override
void SetResizeRecalculate()
virtual void CalculateTextureCoordinates() override
virtual void SetFillColor(const GlsColor &color) override
GlsColor _objectColor
Fill color of object.
Definition: gls_sphere.h:94
unsigned int _stacks
Number of stacks used to draw the sphere.
Definition: gls_sphere.h:101
virtual void GetExtents(float &x, float &y, float &z, float &x1, float &y1, float &z1) override
virtual InterfaceListType * GetCppInterfaceDescription(InterfaceListType *addToThisList=NULL) override
virtual bool Hit(float x, float y, float z, float scale, const Vector &directionVector, Vector *collisionPoint) override
virtual void CopyProperties(DisplayObject *src) override
virtual void Scale(float px, float py, float pz, Vertex *anchor, int handleBar) override
virtual void Draw() override
float _sliceEndDeg
0-180, where 0 is the bottom and 180 the top of the sphere.
Definition: gls_sphere.h:97
virtual int TextureIndex()
float _stackStartDeg
0-360, where 0 is the positive x-axis of the sphere.
Definition: gls_sphere.h:98
bool _needsRecalculate
True when the sphere vertices need to be recalculated.
Definition: gls_sphere.h:104
virtual void CopyGeometry(DisplayObject *src) override
unsigned int _slices
Number of slices used to draw the sphere.
Definition: gls_sphere.h:102
glsSphereMapping_e TextureMappingType()
virtual unsigned int Stacks()
float _sliceStartDeg
0-180, where 0 is the bottom and 180 the top of the sphere.
Definition: gls_sphere.h:96
The disti::DisplayObject class and global enumerations.
The disti::DynamicArray class. A templated array of objects capable of dynamically growing.
The Color class: Implements a 4 component RGBA color.
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
A file for all GL Studio files to include.
#define GLS_EXPORT
Macro denoting which functions should be visible from the runtime library.
Definition: gls_include.h:52
Force inclusion of the DirectShow library.
Definition: bmpimage.h:47
GLS_Sphere_Initializers
Definition: gls_sphere.h:69
glsSphereMapping_e
Definition: gls_sphere.h:60
@ GLS_SPHERE_CYLINDER_MAP
Definition: gls_sphere.h:62
@ GLS_SPHERE_SPHERICAL_MAP
Definition: gls_sphere.h:61