FEMSuite
Public Member Functions | List of all members
IInteractiveObject Class Referenceabstract

This inteface describes a drawble, interactive object More...

#include <IInteractiveObject.h>

Inheritance diagram for IInteractiveObject:
Inheritance graph
[legend]

Public Member Functions

virtual ObjectManagerGetObjectManager () const =0
 
virtual void SetObjectManager (ObjectManager *const om)=0
 
virtual void MouseUp ()=0
 
virtual void Move (IScreen *, const PolarVector &)=0
 
virtual void Rotate (IScreen *, const PolarVector &)=0
 
virtual void Resize (IScreen *, const PolarVector &)=0
 
virtual IScreen::CursorType GetCursor (IScreen *, const ScreenCoords &)=0
 
virtual void Draw2D (IScreen *)=0
 
virtual void Draw3D (IScreen *)=0
 
virtual bool IsVisible (IScreen *)=0
 
virtual bool IncludesPoint (IScreen *, const ScreenCoords &sC)=0
 Enables a pixel-level extension of the entire footprint. More...
 
virtual bool IsRotationPoint (IScreen *, const ScreenCoords &sC)=0
 Enables a pixel-level extension of the rotation aid footprint. More...
 
virtual bool IsDeformationPoint (IScreen *, const ScreenCoords &sC)=0
 Enables a pixel-level extension of the deformation aid footprint. More...
 
virtual bool IsResizingPoint (IScreen *, const ScreenCoords &sC)=0
 Enables a pixel-level extension of the resizing aid footprint. More...
 
virtual bool IsSelected () const =0
 
virtual void SetSelected (const bool=true)=0
 
virtual bool IsHovered () const =0
 
virtual void SetHovered (const bool=true)=0
 
virtual bool IsRotatable ()=0
 Whether the object can be rotated or not More...
 
virtual void SetRotatable (const bool=true)=0
 
virtual bool IsMovable ()=0
 Whether the object can be moved or not More...
 
virtual void SetMovable (const bool=true)=0
 
virtual bool IsResizable ()=0
 Whether the object can be resized or not More...
 
virtual void SetResizable (const bool=true)=0
 
virtual std::string GetName () const =0
 
virtual void SetName (const std::string &name)=0
 
virtual const DisplayStyleGetDisplayStyle () const =0
 
Returns
Current display style that should be used

 
virtual void SetStandardDisplayStyle (const DisplayStyle &ds)=0
 
virtual void SetHoveredDisplayStyle (const DisplayStyle &ds)=0
 
virtual void SetSelectedDisplayStyle (const DisplayStyle &ds)=0
 
virtual IParameterContainer & GetParameters ()=0
 Returns a list of all parameters More...
 
virtual void AddParameters ()=0
 
virtual void UpdateFromParameters (std::shared_ptr< IParameter >=nullptr)=0
 The argument here is the updated paramter More...
 
virtual std::shared_ptr< IParameterGetIParameter (const std::string &name)=0
 Finds a parameter by name More...
 
template<class T , typename... Args>
std::shared_ptr< T > Get (Args...args)
 
template<class T , typename... Args>
std::shared_ptr< Parameter< T > > GetParameter (Args...args)
 
virtual void AddIParameter (std::shared_ptr< IParameter >)=0
 
template<class T , typename... Args>
std::shared_ptr< Parameter< T > > AddParameter (Args...args)
 
template<class T , typename... Args>
std::shared_ptr< T > Add (Args...args)
 
virtual void RemoveParameter (const std::string &name)=0
 
virtual void ClearParameters ()=0
 
template<typename... Args>
std::shared_ptr< DegreeParameterAddDegreeParameter (Args...args)
 
template<typename... Args>
std::shared_ptr< DegreeParameterGetDegreeParameter (Args...args)
 
template<typename... Args>
std::shared_ptr< MediumParameterAddMediumParameter (Args...args)
 
template<typename... Args>
std::shared_ptr< MediumParameterGetMediumParameter (Args...args)
 

Detailed Description

This inteface describes a drawble, interactive object

Member Function Documentation

virtual std::shared_ptr< IParameter > IInteractiveObject::GetIParameter ( const std::string &  name)
pure virtual

Finds a parameter by name

Implemented in InteractiveObjectBase.

virtual IParameterContainer& IInteractiveObject::GetParameters ( )
pure virtual

Returns a list of all parameters

Implemented in InteractiveObjectBase.

virtual bool IInteractiveObject::IncludesPoint ( IScreen ,
const ScreenCoords sC 
)
pure virtual

Enables a pixel-level extension of the entire footprint.

Implemented in InteractiveObjectBase, and Boundary.

virtual bool IInteractiveObject::IsDeformationPoint ( IScreen ,
const ScreenCoords sC 
)
pure virtual

Enables a pixel-level extension of the deformation aid footprint.

Implemented in InteractiveObjectBase, and Boundary.

virtual bool IInteractiveObject::IsMovable ( )
pure virtual

Whether the object can be moved or not

Implemented in InteractiveObjectBase.

virtual bool IInteractiveObject::IsResizable ( )
pure virtual

Whether the object can be resized or not

Implemented in InteractiveObjectBase.

virtual bool IInteractiveObject::IsResizingPoint ( IScreen ,
const ScreenCoords sC 
)
pure virtual

Enables a pixel-level extension of the resizing aid footprint.

Implemented in InteractiveObjectBase, Parallelepiped, and Boundary.

virtual bool IInteractiveObject::IsRotatable ( )
pure virtual

Whether the object can be rotated or not

Implemented in InteractiveObjectBase.

virtual bool IInteractiveObject::IsRotationPoint ( IScreen ,
const ScreenCoords sC 
)
pure virtual

Enables a pixel-level extension of the rotation aid footprint.

Implemented in InteractiveObjectBase, Parallelepiped, Boundary, and EllipseBoundary.

virtual void IInteractiveObject::UpdateFromParameters ( std::shared_ptr< IParameter = nullptr)
pure virtual

The argument here is the updated paramter

Implemented in InteractiveObjectBase, Parallelepiped, and Boundary.


The documentation for this class was generated from the following file: