40 #ifndef _COMPONENT_BASE_H
41 #define _COMPONENT_BASE_H
50 class LiveComponentAccessor;
114 virtual GLS_EXPORT
void ChangedAbsolutePlacement(
bool val );
124 virtual GLS_EXPORT
void CalculateBoundingBox(
void );
159 virtual GLS_EXPORT
void Draw();
178 virtual GLS_EXPORT
void GetExtents(
float& x,
float& y,
float& z,
float& x1,
float& y1,
float& z1 );
202 virtual GLS_EXPORT
void Init();
221 virtual GLS_EXPORT
void Location(
const Vertex& v ) DISTI_METHOD_OVERRIDE;
224 virtual GLS_EXPORT
void Location(
float x,
float y,
float z );
256 const Vector& logicalCoords,
258 const Vector& directionVector,
276 virtual GLS_EXPORT
void Rotate(
const Vector& orig,
float angle,
const Vector& axis );
279 virtual GLS_EXPORT
void Scale(
float px,
float py,
float pz,
Vertex* parentAnchor,
int handleBar = 0 );
284 virtual GLS_EXPORT
void SetRedraw(
void );
287 virtual GLS_EXPORT
void Translate(
float tr[] );
290 virtual GLS_EXPORT
void Translate(
float x,
float y,
float z );
312 GLS_EXPORT
void SetValue(
int spec, va_list& args );
325 Vertex _absolutePlacementDelta;
335 GLS_EXPORT
void EditorTransformMatrix(
const GlsMatrixType& matrix );
336 GLS_EXPORT
const GlsMatrixType& EditorTransformMatrix()
const;
virtual void PreDraw(const OpenGLMatrices ¤t, Culler &culler)
Definition: display_frame.h:83
std::string GetComponentDirectory(void *module)
virtual const Vertex & Location(void) const
virtual InputHandler * GetInputHandler()
virtual int TextureIndex()
virtual void CopyProperties(DisplayObject *src)
virtual DisplayObject * FindByNameSameFrame(const char *name)
Definition: dynamic_array.h:62
virtual void Rotate(const Vector &orig, float angle, const Vector &axis)
virtual const Vertex & Location(void) const
Definition: component_base.h:218
The disti::Group class. Implements groups of objects.
Class to contain current OpenGL view, projection and draw matrices.
Definition: util.h:278
ComponentBase(int generateInstance=0)
virtual DisplayObject * CloneObject(bool generateNames=false)
DisplayFrame * Parent(void) const
Definition: display.h:897
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:327
virtual void Translate(float tr[])
LiveComponentAccessor * LiveAccessor()
Definition: component_base.h:215
void SetAbsolutePlacementDefault(bool value)
LiveComponentAccessor * _liveAccessor
Definition: component_base.h:323
A file for all GL Studio files to include.
Definition: gls_glo_file.h:835
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:309
Definition: component_base.h:67
virtual void SetAvailableAttributes(unsigned int value)
virtual DisplayObject * HandleInput(DisplayEvent *ev)
void ParentDisplayFrame(DisplayFrame *val)
Definition: component_base.h:252
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:326
void SetValue(int spec, va_list &args)
static bool CheckLiveVersion(ComponentBase *comp, const GlsBuiltVersionInfo &callingVersion=GlsBuiltVersionInfo())
bool _absolutePlacement
Definition: component_base.h:324
Definition: disti_metadata.h:174
virtual void DeleteAllChildren()
virtual void GetTransformedExtents(Vector &min, Vector &max, const GlsMatrixType &matrix, bool resetMinMax=true)
Used for matching version of libraries and headers.
virtual void Initialize()
Definition: version.h:212
The disti::DisplayFrame class.
virtual void SetRedraw(void)
virtual void CalcDrawMatrix()
virtual void ClearDragAndFocus()
virtual float Scale(void)
Definition: display_frame.h:132
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:245
bool AbsolutePlacement() const
Definition: component_base.h:112
Definition: disti_metadata.h:79
virtual bool UseParentsLighting()
Definition: bmpimage.h:46
virtual void CreateObjects()
void NotifyAttributeChanged(const AttributeName &name)
virtual void GetResources(std::ostream &outstr, GlsResourceFilter *filter=NULL)
virtual void GetCppInterfaceDescriptionFree(InterfaceListType *array)