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." )
114 comp->SetAvailableAttributes( availableAttributes );
115 comp->CreateObjects();
127 virtual GLS_EXPORT
void ChangedAbsolutePlacement(
bool val );
137 virtual GLS_EXPORT
void CalculateBoundingBox(
void ) DISTI_METHOD_OVERRIDE;
172 virtual GLS_EXPORT
void Draw() DISTI_METHOD_OVERRIDE;
191 virtual GLS_EXPORT
void GetExtents(
float& x,
float& y,
float& z,
float& x1,
float& y1,
float& z1 ) DISTI_METHOD_OVERRIDE;
215 virtual GLS_EXPORT
void Init();
234 virtual GLS_EXPORT
void Location(
const Vertex& v ) DISTI_METHOD_OVERRIDE;
237 virtual GLS_EXPORT
void Location(
float x,
float y,
float z ) DISTI_METHOD_OVERRIDE;
269 const Vector& logicalCoords,
271 const Vector& directionVector,
289 virtual GLS_EXPORT
void Rotate( const
Vector& orig,
float angle, const
Vector& axis ) DISTI_METHOD_OVERRIDE;
292 virtual GLS_EXPORT
void Scale(
float px,
float py,
float pz,
Vertex* parentAnchor,
int handleBar = 0 ) DISTI_METHOD_OVERRIDE;
297 virtual GLS_EXPORT
void SetRedraw(
void ) DISTI_METHOD_OVERRIDE;
300 virtual GLS_EXPORT
void Translate(
float tr[] ) DISTI_METHOD_OVERRIDE;
303 virtual GLS_EXPORT
void Translate(
float x,
float y,
float z ) DISTI_METHOD_OVERRIDE;
321 virtual GLS_EXPORT
int TextureIndex() DISTI_METHOD_OVERRIDE;
322 virtual GLS_EXPORT
void TextureIndex(
int index ) DISTI_METHOD_OVERRIDE
328 GLS_EXPORT
void SetValue(
int spec, va_list& args ) DISTI_METHOD_OVERRIDE;
341 Vertex _absolutePlacementDelta;
351 GLS_EXPORT
void EditorTransformMatrix( const
GlsMatrixType& matrix );
352 GLS_EXPORT const
GlsMatrixType& EditorTransformMatrix() const;
366 typedef ComponentBase* ( *ComponentBaseCreateFunc )();
Definition: display_frame.h:85
virtual void CopyProperties(DisplayObject *src) override
virtual void GetResources(std::ostream &outstr, GlsResourceFilter *filter=NULL) override
virtual DisplayObject * Pick3D(const Vector &winLoc, const Vector &logicalCoords, float scale, const Vector &directionVector, Vector &collisionWinLoc, const OpenGLMatrices &drawnMatrices) override
std::string GetComponentDirectory(void *module)
virtual void SetAvailableAttributes(unsigned int value) override
virtual const Vertex & Location(void) const
#define DISTI_DEPRECATED(msg)
Defines whether this compiler supports the C++14 deprecated attribute.
Definition: gls_cpp_lang_support.h:436
virtual void Draw() override
Definition: dynamic_array.h:66
The disti::Group class. Implements groups of objects.
Class to contain current OpenGL view, projection and draw matrices.
Definition: util.h:471
ComponentBase(int generateInstance=0)
virtual void GetTransformedExtents(Vector &min, Vector &max, const GlsMatrixType &matrix, bool resetMinMax=true) override
DisplayFrame * Parent(void) const
Definition: display.h:932
virtual DisplayObject * CloneObject(bool generateNames=false) override
virtual InputHandler * GetInputHandler() override
GlsMatrixType _editorTransformMatrix
Definition: component_base.h:343
virtual void CalculateMatrices(const OpenGLMatrices &newMatrices) override
LiveComponentAccessor * LiveAccessor()
Definition: component_base.h:228
void SetAbsolutePlacementDefault(bool value)
LiveComponentAccessor * _liveAccessor
Definition: component_base.h:339
A file for all GL Studio files to include.
Definition: gls_glo_file.h:988
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 GetCppInterfaceDescriptionFree(InterfaceListType *array) override
virtual DisplayObject * FindByNameSameFrame(const char *name) override
virtual void SetRedraw(void) override
virtual void Translate(float tr[]) override
Definition: component_base.h:67
virtual void DeleteAllChildren() override
virtual DisplayObject * HandleInput(DisplayEvent *ev)
virtual void PreDraw(const OpenGLMatrices ¤t, Culler &culler) override
void ParentDisplayFrame(DisplayFrame *val)
Definition: component_base.h:265
virtual void CalcDrawMatrix() override
virtual int TextureIndex(void)
DisplayFrame * _parentDisplayFrame
Definition: component_base.h:342
void NotifyAttributeChanged(const AttributeName &name) override
virtual const Vertex & Location(void) const override
Definition: component_base.h:231
void SetValue(int spec, va_list &args) override
static bool CheckLiveVersion(ComponentBase *comp, const GlsBuiltVersionInfo &callingVersion=GlsBuiltVersionInfo())
bool _absolutePlacement
Definition: component_base.h:340
Definition: disti_metadata.h:186
virtual int TextureIndex() override
virtual void Initialize()
Definition: gls_version.h:208
The disti::DisplayFrame class.
virtual void GetExtents(float &x, float &y, float &z, float &x1, float &y1, float &z1) override
virtual InterfaceListType * GetCppInterfaceDescription(InterfaceListType *addToThisList=NULL) override
virtual float Scale(void)
Definition: display_frame.h:135
virtual void Rotate(const Vector &orig, float angle, const Vector &axis) override
Definition: live_component_accessor.h:54
static T * CreateComponent(DisplayObject::AvailableAttributesEnum availableAttributes=DisplayObject::GLS_ATTRIBUTES_ALL)
Definition: component_base.h:111
virtual void CopyGeometry(DisplayObject *src) override
Definition: gls_resources.h:50
DisplayFrame * ParentDisplayFrame() const
Definition: component_base.h:258
bool AbsolutePlacement() const
Definition: component_base.h:125
AvailableAttributesEnum
Definition: display.h:131
Definition: disti_metadata.h:85
virtual bool UseParentsLighting()
Definition: bmpimage.h:46
virtual DistiAttributeBase & Resource(const char *name) override
virtual void ClearDragAndFocus() override
virtual void CreateObjects()