40 #ifndef _COMPONENT_BASE_H
41 #define _COMPONENT_BASE_H
50 class LiveComponentAccessor;
71 DISTI_DEPRECATED(
"This identifier is forbidden by the C++ standard. Use BaseClass instead." )
116 virtual GLS_EXPORT
void ChangedAbsolutePlacement(
bool val );
126 virtual GLS_EXPORT
void CalculateBoundingBox(
void );
161 virtual GLS_EXPORT
void Draw();
180 virtual GLS_EXPORT
void GetExtents(
float& x,
float& y,
float& z,
float& x1,
float& y1,
float& z1 );
204 virtual GLS_EXPORT
void Init();
223 virtual GLS_EXPORT
void Location(
const Vertex& v ) DISTI_METHOD_OVERRIDE;
226 virtual GLS_EXPORT
void Location(
float x,
float y,
float z );
258 const Vector& logicalCoords,
260 const Vector& directionVector,
278 virtual GLS_EXPORT
void Rotate(
const Vector& orig,
float angle,
const Vector& axis );
281 virtual GLS_EXPORT
void Scale(
float px,
float py,
float pz,
Vertex* parentAnchor,
int handleBar = 0 );
286 virtual GLS_EXPORT
void SetRedraw(
void );
289 virtual GLS_EXPORT
void Translate(
float tr[] );
292 virtual GLS_EXPORT
void Translate(
float x,
float y,
float z );
314 GLS_EXPORT
void SetValue(
int spec, va_list& args );
327 Vertex _absolutePlacementDelta;
337 GLS_EXPORT
void EditorTransformMatrix(
const GlsMatrixType& matrix );
338 GLS_EXPORT
const GlsMatrixType& EditorTransformMatrix()
const;
virtual void PreDraw(const OpenGLMatrices ¤t, Culler &culler)
Definition: display_frame.h:85
std::string GetComponentDirectory(void *module)
virtual const Vertex & Location(void) const
virtual InputHandler * GetInputHandler()
virtual int TextureIndex()
#define DISTI_DEPRECATED(msg)
Defines whether this compiler supports the C++14 deprecated attribute.
Definition: gls_cpp_lang_support.h:436
virtual void CopyProperties(DisplayObject *src)
virtual DisplayObject * FindByNameSameFrame(const char *name)
Definition: dynamic_array.h:66
virtual void Rotate(const Vector &orig, float angle, const Vector &axis)
The disti::Group class. Implements groups of objects.
Class to contain current OpenGL view, projection and draw matrices.
Definition: util.h:296
ComponentBase(int generateInstance=0)
virtual DisplayObject * CloneObject(bool generateNames=false)
DisplayFrame * Parent(void) const
Definition: display.h:926
virtual void CopyGeometry(DisplayObject *src)
virtual void GetExtents(float &x, float &y, float &z, float &x1, float &y1, float &z1)
virtual void CalculateMatrices(const OpenGLMatrices &newMatrices)
GlsMatrixType _editorTransformMatrix
Definition: component_base.h:329
virtual void Translate(float tr[])
LiveComponentAccessor * LiveAccessor()
Definition: component_base.h:217
void SetAbsolutePlacementDefault(bool value)
LiveComponentAccessor * _liveAccessor
Definition: component_base.h:325
A file for all GL Studio files to include.
Definition: gls_glo_file.h:982
Used for matching version of libraries and headers.
bool GetAbsolutePlacementDefault()
static ComponentBase * CreateLiveComponent(const char *fileName=NULL, const char *className=NULL, bool performCreate=true, const GlsBuiltVersionInfo &callingVersion=GlsBuiltVersionInfo())
virtual void TextureIndex(int index)
Definition: component_base.h:311
Definition: component_base.h:67
virtual void SetAvailableAttributes(unsigned int value)
virtual DisplayObject * HandleInput(DisplayEvent *ev)
void ParentDisplayFrame(DisplayFrame *val)
Definition: component_base.h:254
virtual DistiAttributeBase & Resource(const char *name)
virtual DisplayObject * Pick3D(const Vector &winLoc, const Vector &logicalCoords, float scale, const Vector &directionVector, Vector &collisionWinLoc, const OpenGLMatrices &drawnMatrices)
virtual int TextureIndex(void)
DisplayFrame * _parentDisplayFrame
Definition: component_base.h:328
void SetValue(int spec, va_list &args)
void NotifyAttributeChanged(const AttributeName &name) override
virtual const Vertex & Location(void) const override
Definition: component_base.h:220
static bool CheckLiveVersion(ComponentBase *comp, const GlsBuiltVersionInfo &callingVersion=GlsBuiltVersionInfo())
bool _absolutePlacement
Definition: component_base.h:326
Definition: disti_metadata.h:183
virtual void DeleteAllChildren()
virtual void GetTransformedExtents(Vector &min, Vector &max, const GlsMatrixType &matrix, bool resetMinMax=true)
virtual void Initialize()
Definition: gls_version.h:208
The disti::DisplayFrame class.
virtual void SetRedraw(void)
virtual void CalcDrawMatrix()
virtual void ClearDragAndFocus()
virtual float Scale(void)
Definition: display_frame.h:135
Definition: live_component_accessor.h:54
virtual void Rotate(const Vector &orig, float angle, const Vector &axis)
virtual InterfaceListType * GetCppInterfaceDescription(InterfaceListType *addToThisList=NULL)
Definition: gls_resources.h:50
DisplayFrame * ParentDisplayFrame() const
Definition: component_base.h:247
bool AbsolutePlacement() const
Definition: component_base.h:114
Definition: disti_metadata.h:85
virtual bool UseParentsLighting()
Definition: bmpimage.h:46
virtual void CreateObjects()
virtual void GetResources(std::ostream &outstr, GlsResourceFilter *filter=NULL)
virtual void GetCppInterfaceDescriptionFree(InterfaceListType *array)