40 #ifndef _COMPONENT_BASE_H
41 #define _COMPONENT_BASE_H
50 class LiveComponentAccessor;
104 virtual GLS_EXPORT
void ChangedAbsolutePlacement(
bool val);
114 virtual GLS_EXPORT
void CalculateBoundingBox(
void);
149 virtual GLS_EXPORT
void Draw();
168 virtual GLS_EXPORT
void GetExtents(
float &x,
float &y,
float &z,
float &x1,
float &y1,
float &z1);
192 virtual GLS_EXPORT
void Init();
211 virtual GLS_EXPORT
void Location(
const Vertex &v) DISTI_METHOD_OVERRIDE;
214 virtual GLS_EXPORT
void Location(
float x,
float y,
float z);
246 const Vector& logicalCoords,
248 const Vector& directionVector,
269 virtual GLS_EXPORT
void Scale(
float px,
float py,
float pz,
Vertex *parentAnchor,
int handleBar = 0);
277 virtual GLS_EXPORT
void Translate(
float tr[]);
280 virtual GLS_EXPORT
void Translate(
float x,
float y,
float z);
302 GLS_EXPORT
void SetValue(
int spec,va_list &args);
315 Vertex _absolutePlacementDelta;
325 GLS_EXPORT
void EditorTransformMatrix(
const GlsMatrixType& matrix);
326 GLS_EXPORT
const GlsMatrixType& EditorTransformMatrix()
const;
332 virtual GLS_EXPORT
void SetFromGloData(GlsGloFileAttribute &data);
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:63
virtual void Rotate(const Vector &orig, float angle, const Vector &axis)
virtual const Vertex & Location(void) const
Definition: component_base.h:208
The disti::Group class. Implements groups of objects.
Class to contain current OpenGL view, projection and draw matrices.
Definition: util.h:289
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:317
virtual void Translate(float tr[])
LiveComponentAccessor * LiveAccessor()
Definition: component_base.h:205
LiveComponentAccessor * _liveAccessor
Definition: component_base.h:313
A file for all GL Studio files to include.
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:299
Definition: component_base.h:57
virtual void SetAvailableAttributes(unsigned int value)
virtual DisplayObject * HandleInput(DisplayEvent *ev)
void ParentDisplayFrame(DisplayFrame *val)
Definition: component_base.h:242
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:316
void SetValue(int spec, va_list &args)
static bool CheckLiveVersion(ComponentBase *comp, const GlsBuiltVersionInfo &callingVersion=GlsBuiltVersionInfo())
bool _absolutePlacement
Definition: component_base.h:314
Definition: disti_metadata.h:179
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:53
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:235
bool AbsolutePlacement() const
Definition: component_base.h:102
Definition: disti_metadata.h:83
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)