TwiceAsNice  2019-02-18
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Slots | Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
GraphicsCircleItem Class Reference

#include <GraphicsCircleItem.h>

Inheritance diagram for GraphicsCircleItem:
Inheritance graph
Collaboration diagram for GraphicsCircleItem:
Collaboration graph

Public Slots

void slot_setPositions (Nice::SeqPoint _pos)
 
void slot_setBound (Nice::Size _bound)
 
void slot_setSynchPos (bool _synch)
 
void slot_setPositions (Nice::SeqPoint _pos)
 
void slot_setBound (Nice::Size _bound)
 
void slot_setSynchPos (bool _synch)
 
void slot_setPositions (Nice::SeqPoint _pos)
 
void slot_setBound (Nice::Size _bound)
 
void slot_setSynchPos (bool _synch)
 

Public Member Functions

 GraphicsCircleItem (QGraphicsItem *parent=0)
 
void setUnused (Nice::SeqPoint _unused)
 
 GraphicsCircleItem (QGraphicsItem *parent=0)
 
void setUnused (Nice::SeqPoint _unused)
 
 GraphicsCircleItem (QGraphicsItem *parent=0)
 
void setUnused (Nice::SeqPoint _unused)
 
- Public Member Functions inherited from Nice::BridgeItem
void detach (QWidget *_widget)
 
bool getSynchStatus () const
 Get the sync status. More...
 
const QString & getNodeName ()
 
virtual void setState (CompletionState _state)
 Set the state of the widget (either Nice::OK or Nice::Unsynched ). More...
 
virtual void updateGUI (const ::Nice::Any &)
 Update the widgets data field from the connected Property. More...
 
virtual void setLabels (std::vector< std::string > _vec)
 Set the Labels This function has to be implemented in the derived widget class. More...
 
void setLabel (const QString &_text="")
 Set the text label of this widget. More...
 
QString getLabel ()
 
template<typename E >
std::vector< E * > getBridgeItems ()
 Get all widgets which are connected to the same Property like this one. More...
 
virtual void setShowLabels (bool _show)
 Enables to Labels. More...
 
Nice::JointgetNode () const
 Get the connected Joint node. More...
 
Nice::PropertygetProperty () const
 Get the connected Property. More...
 
virtual void getSessionData (Nice::JointPtr &)
 Fills the passed Joint with the internal session data. More...
 
virtual void setSessionData (Nice::JointPtr)
 Set the internal session data from thge passed Joint. More...
 
virtual void connect (const ::Nice::PropertyPtr _p)
 Connects the widget to a Joint or Property. More...
 
void applyReadOnlyActor ()
 
virtual void connect (const ::Nice::JointPtr _j)
 Connects the widget to a Joint or Property. More...
 
void applyBridge ()
 
QString getPropertyNode () const
 Get the path to the connected Joint. More...
 
virtual bool isReadOnly ()
 Checks if an attribute RO (read only) is set to true. More...
 
virtual void setPropertyNode (QString _nodeName)
 Set the relative path to the displayed Property from the connected Joint. More...
 
void setSynchStatus (bool _on)
 Set the current sync state. More...
 
void setUserConfirmationStatus (bool _on)
 
virtual void setLock (const bool &_locked)
 
void disconnect ()
 Disconnects the widget from the connected Joint or Property. More...
 
void detach (QWidget *_widget)
 
bool getSynchStatus () const
 Get the sync status. More...
 
const QString & getNodeName ()
 
virtual void setState (CompletionState _state)
 Set the state of the widget (either Nice::OK or Nice::Unsynched ). More...
 
virtual void updateGUI (const ::Nice::Any &)
 Update the widgets data field from the connected Property. More...
 
virtual void setLabels (std::vector< std::string > _vec)
 Set the Labels This function has to be implemented in the derived widget class. More...
 
void setLabel (const QString &_text="")
 Set the text label of this widget. More...
 
QString getLabel ()
 
template<typename E >
std::vector< E * > getBridgeItems ()
 Get all widgets which are connected to the same Property like this one. More...
 
virtual void setShowLabels (bool _show)
 Enables to Labels. More...
 
Nice::JointgetNode () const
 Get the connected Joint node. More...
 
Nice::PropertygetProperty () const
 Get the connected Property. More...
 
virtual void getSessionData (Nice::JointPtr &)
 Fills the passed Joint with the internal session data. More...
 
virtual void setSessionData (Nice::JointPtr)
 Set the internal session data from thge passed Joint. More...
 
virtual void connect (const ::Nice::PropertyPtr _p)
 Connects the widget to a Joint or Property. More...
 
void applyReadOnlyActor ()
 
virtual void connect (const ::Nice::JointPtr _j)
 Connects the widget to a Joint or Property. More...
 
void applyBridge ()
 
QString getPropertyNode () const
 Get the path to the connected Joint. More...
 
virtual bool isReadOnly ()
 Checks if an attribute RO (read only) is set to true. More...
 
virtual void setPropertyNode (QString _nodeName)
 Set the relative path to the displayed Property from the connected Joint. More...
 
void setSynchStatus (bool _on)
 Set the current sync state. More...
 
void setUserConfirmationStatus (bool _on)
 
virtual void setLock (const bool &_locked)
 
void disconnect ()
 Disconnects the widget from the connected Joint or Property. More...
 
void detach (QWidget *_widget)
 
bool getSynchStatus () const
 Get the sync status. More...
 
const QString & getNodeName ()
 
virtual void setState (CompletionState _state)
 Set the state of the widget (either Nice::OK or Nice::Unsynched ). More...
 
virtual void updateGUI (const ::Nice::Any &)
 Update the widgets data field from the connected Property. More...
 
virtual void setLabels (std::vector< std::string > _vec)
 Set the Labels This function has to be implemented in the derived widget class. More...
 
void setLabel (const QString &_text="")
 Set the text label of this widget. More...
 
QString getLabel ()
 
template<typename E >
std::vector< E * > getBridgeItems ()
 Get all widgets which are connected to the same Property like this one. More...
 
virtual void setShowLabels (bool _show)
 Enables to Labels. More...
 
Nice::JointgetNode () const
 Get the connected Joint node. More...
 
Nice::PropertygetProperty () const
 Get the connected Property. More...
 
virtual void getSessionData (Nice::JointPtr &)
 Fills the passed Joint with the internal session data. More...
 
virtual void setSessionData (Nice::JointPtr)
 Set the internal session data from thge passed Joint. More...
 
virtual void connect (const ::Nice::PropertyPtr _p)
 Connects the widget to a Joint or Property. More...
 
void applyReadOnlyActor ()
 
virtual void connect (const ::Nice::JointPtr _j)
 Connects the widget to a Joint or Property. More...
 
void applyBridge ()
 
QString getPropertyNode () const
 Get the path to the connected Joint. More...
 
virtual bool isReadOnly ()
 Checks if an attribute RO (read only) is set to true. More...
 
virtual void setPropertyNode (QString _nodeName)
 Set the relative path to the displayed Property from the connected Joint. More...
 
void setSynchStatus (bool _on)
 Set the current sync state. More...
 
void setUserConfirmationStatus (bool _on)
 
virtual void setLock (const bool &_locked)
 
void disconnect ()
 Disconnects the widget from the connected Joint or Property. More...
 

Protected Member Functions

virtual void updateGUI (const Nice::Any &_val)
 
virtual void initSlots ()
 
virtual void mouseMoveEvent (QGraphicsSceneMouseEvent *event)
 
virtual void mouseMoveEvent (QGraphicsSceneDragDropEvent *event)
 
virtual void mousePressEvent (QGraphicsSceneMouseEvent *event)
 
virtual void mousePressEvent (QGraphicsSceneDragDropEvent *event)
 
virtual void mouseReleaseEvent (QGraphicsSceneMouseEvent *event)
 
virtual void hoverMoveEvent (QGraphicsSceneHoverEvent *event)
 
virtual void updateGUI (const Nice::Any &_val)
 
virtual void initSlots ()
 
virtual void mouseMoveEvent (QGraphicsSceneMouseEvent *event)
 
virtual void mouseMoveEvent (QGraphicsSceneDragDropEvent *event)
 
virtual void mousePressEvent (QGraphicsSceneMouseEvent *event)
 
virtual void mousePressEvent (QGraphicsSceneDragDropEvent *event)
 
virtual void mouseReleaseEvent (QGraphicsSceneMouseEvent *event)
 
virtual void hoverMoveEvent (QGraphicsSceneHoverEvent *event)
 
virtual void updateGUI (const Nice::Any &_val)
 
virtual void initSlots ()
 
virtual void mouseMoveEvent (QGraphicsSceneMouseEvent *event)
 
virtual void mouseMoveEvent (QGraphicsSceneDragDropEvent *event)
 
virtual void mousePressEvent (QGraphicsSceneMouseEvent *event)
 
virtual void mousePressEvent (QGraphicsSceneDragDropEvent *event)
 
virtual void mouseReleaseEvent (QGraphicsSceneMouseEvent *event)
 
virtual void hoverMoveEvent (QGraphicsSceneHoverEvent *event)
 
- Protected Member Functions inherited from Nice::BridgeItem
template<typename E >
void set (const E &_value)
 Set the value from the derived widget to the Property. More...
 
void init (QWidget *_widget)
 Initialize the widget. More...
 
 BridgeItem ()
 Constructor. More...
 
virtual ~BridgeItem ()
 Destructor. More...
 
void setWidgetName ()
 
virtual void initAttributes ()
 virtual function is called after connecting to a property. More...
 
CompletionState getState ()
 Get the current state of the widget. More...
 
void resetGUI ()
 Update the widgets data field from the connected Property. More...
 
virtual int requestUserConfirmation ()
 
virtual void trySetFocus ()
 
void setBuffered (bool _buf)
 
virtual void set ()
 Slot is called when the date of the widget is changed. More...
 
virtual void updateProperty ()
 Set the gui value to the Property. More...
 
template<typename E >
void set (const E &_value)
 Set the value from the derived widget to the Property. More...
 
void init (QWidget *_widget)
 Initialize the widget. More...
 
 BridgeItem ()
 Constructor. More...
 
virtual ~BridgeItem ()
 Destructor. More...
 
void setWidgetName ()
 
virtual void initAttributes ()
 virtual function is called after connecting to a property. More...
 
CompletionState getState ()
 Get the current state of the widget. More...
 
void resetGUI ()
 Update the widgets data field from the connected Property. More...
 
virtual int requestUserConfirmation ()
 
virtual void trySetFocus ()
 
void setBuffered (bool _buf)
 
virtual void set ()
 Slot is called when the date of the widget is changed. More...
 
virtual void updateProperty ()
 Set the gui value to the Property. More...
 
template<typename E >
void set (const E &_value)
 Set the value from the derived widget to the Property. More...
 
void init (QWidget *_widget)
 Initialize the widget. More...
 
 BridgeItem ()
 Constructor. More...
 
virtual ~BridgeItem ()
 Destructor. More...
 
void setWidgetName ()
 
virtual void initAttributes ()
 virtual function is called after connecting to a property. More...
 
CompletionState getState ()
 Get the current state of the widget. More...
 
void resetGUI ()
 Update the widgets data field from the connected Property. More...
 
virtual int requestUserConfirmation ()
 
virtual void trySetFocus ()
 
void setBuffered (bool _buf)
 
virtual void set ()
 Slot is called when the date of the widget is changed. More...
 
virtual void updateProperty ()
 Set the gui value to the Property. More...
 

Private Types

enum  operation {
  NONE, MOVE, SCALE, PAINT,
  ERASE, NONE, MOVE, SCALE,
  PAINT, ERASE, NONE, MOVE,
  SCALE, PAINT, ERASE
}
 
enum  operation {
  NONE, MOVE, SCALE, PAINT,
  ERASE, NONE, MOVE, SCALE,
  PAINT, ERASE, NONE, MOVE,
  SCALE, PAINT, ERASE
}
 
enum  operation {
  NONE, MOVE, SCALE, PAINT,
  ERASE, NONE, MOVE, SCALE,
  PAINT, ERASE, NONE, MOVE,
  SCALE, PAINT, ERASE
}
 

Private Member Functions

bool isInBound ()
 
void drawQuadrant ()
 
operation getOperation (QPointF _pos)
 
bool isInBound ()
 
void drawQuadrant ()
 
operation getOperation (QPointF _pos)
 
bool isInBound ()
 
void drawQuadrant ()
 
operation getOperation (QPointF _pos)
 

Private Attributes

bool m_center
 
QPointF _dragStart
 
Nice::SeqPoint m_pos
 
float m_radius
 
int m_selected
 
operation m_operation
 
QRectF m_bound
 
QGraphicsEllipseItem * si
 
std::vector< QGraphicsEllipseItem * > m_circles
 
QImage * m_image
 
bool m_snapToPixel
 
std::vector< Nice::Pointm_unused
 

Additional Inherited Members

- Public Attributes inherited from Nice::BridgeItem
QGroupBox * m_container
 
bool m_locked
 
- Static Public Attributes inherited from Nice::BridgeItem
static std::map< CompletionState, QString > * s_palette = 0
 
- Protected Attributes inherited from Nice::BridgeItem
bool m_inited
 
CompletionState m_state
 
bool m_autoSynch
 
bool m_isUserConfirmationNeeded
 
Nice::Jointm_root
 
Nice::Propertym_prop
 
WaveBreakerPtr m_breaker
 
bool m_showLabels
 
Nice::I64 m_id
 
QString m_nodeName
 
std::vector< Nice::PropertyPtrm_connectedProps
 

Member Enumeration Documentation

◆ operation [1/3]

Enumerator
NONE 
MOVE 
SCALE 
PAINT 
ERASE 
NONE 
MOVE 
SCALE 
PAINT 
ERASE 
NONE 
MOVE 
SCALE 
PAINT 
ERASE 

◆ operation [2/3]

Enumerator
NONE 
MOVE 
SCALE 
PAINT 
ERASE 
NONE 
MOVE 
SCALE 
PAINT 
ERASE 
NONE 
MOVE 
SCALE 
PAINT 
ERASE 

◆ operation [3/3]

Enumerator
NONE 
MOVE 
SCALE 
PAINT 
ERASE 
NONE 
MOVE 
SCALE 
PAINT 
ERASE 
NONE 
MOVE 
SCALE 
PAINT 
ERASE 

Constructor & Destructor Documentation

◆ GraphicsCircleItem() [1/3]

GraphicsCircleItem::GraphicsCircleItem ( QGraphicsItem *  parent = 0)

◆ GraphicsCircleItem() [2/3]

GraphicsCircleItem::GraphicsCircleItem ( QGraphicsItem *  parent = 0)

◆ GraphicsCircleItem() [3/3]

GraphicsCircleItem::GraphicsCircleItem ( QGraphicsItem *  parent = 0)

Member Function Documentation

◆ drawQuadrant() [1/3]

void GraphicsCircleItem::drawQuadrant ( )
private

◆ drawQuadrant() [2/3]

void GraphicsCircleItem::drawQuadrant ( )
private

◆ drawQuadrant() [3/3]

void GraphicsCircleItem::drawQuadrant ( )
private

◆ getOperation() [1/3]

operation GraphicsCircleItem::getOperation ( QPointF  _pos)
private

◆ getOperation() [2/3]

operation GraphicsCircleItem::getOperation ( QPointF  _pos)
private

◆ getOperation() [3/3]

GraphicsCircleItem::operation GraphicsCircleItem::getOperation ( QPointF  _pos)
private

◆ hoverMoveEvent() [1/3]

void GraphicsCircleItem::hoverMoveEvent ( QGraphicsSceneHoverEvent *  event)
protectedvirtual

◆ hoverMoveEvent() [2/3]

virtual void GraphicsCircleItem::hoverMoveEvent ( QGraphicsSceneHoverEvent *  event)
protectedvirtual

◆ hoverMoveEvent() [3/3]

virtual void GraphicsCircleItem::hoverMoveEvent ( QGraphicsSceneHoverEvent *  event)
protectedvirtual

◆ initSlots() [1/3]

virtual void GraphicsCircleItem::initSlots ( )
protectedvirtual

Reimplemented from Nice::BridgeItem.

◆ initSlots() [2/3]

void GraphicsCircleItem::initSlots ( )
protectedvirtual

Reimplemented from Nice::BridgeItem.

◆ initSlots() [3/3]

virtual void GraphicsCircleItem::initSlots ( )
protectedvirtual

Reimplemented from Nice::BridgeItem.

◆ isInBound() [1/3]

bool GraphicsCircleItem::isInBound ( )
private

◆ isInBound() [2/3]

bool GraphicsCircleItem::isInBound ( )
private

◆ isInBound() [3/3]

bool GraphicsCircleItem::isInBound ( )
private

◆ mouseMoveEvent() [1/6]

virtual void GraphicsCircleItem::mouseMoveEvent ( QGraphicsSceneMouseEvent *  event)
protectedvirtual

◆ mouseMoveEvent() [2/6]

virtual void GraphicsCircleItem::mouseMoveEvent ( QGraphicsSceneMouseEvent *  event)
protectedvirtual

◆ mouseMoveEvent() [3/6]

void GraphicsCircleItem::mouseMoveEvent ( QGraphicsSceneMouseEvent *  event)
protectedvirtual

◆ mouseMoveEvent() [4/6]

virtual void GraphicsCircleItem::mouseMoveEvent ( QGraphicsSceneDragDropEvent *  event)
protectedvirtual

◆ mouseMoveEvent() [5/6]

virtual void GraphicsCircleItem::mouseMoveEvent ( QGraphicsSceneDragDropEvent *  event)
protectedvirtual

◆ mouseMoveEvent() [6/6]

void GraphicsCircleItem::mouseMoveEvent ( QGraphicsSceneDragDropEvent *  event)
protectedvirtual

◆ mousePressEvent() [1/6]

void GraphicsCircleItem::mousePressEvent ( QGraphicsSceneMouseEvent *  event)
protectedvirtual

◆ mousePressEvent() [2/6]

virtual void GraphicsCircleItem::mousePressEvent ( QGraphicsSceneMouseEvent *  event)
protectedvirtual

◆ mousePressEvent() [3/6]

virtual void GraphicsCircleItem::mousePressEvent ( QGraphicsSceneMouseEvent *  event)
protectedvirtual

◆ mousePressEvent() [4/6]

virtual void GraphicsCircleItem::mousePressEvent ( QGraphicsSceneDragDropEvent *  event)
protectedvirtual

◆ mousePressEvent() [5/6]

void GraphicsCircleItem::mousePressEvent ( QGraphicsSceneDragDropEvent *  event)
protectedvirtual

◆ mousePressEvent() [6/6]

virtual void GraphicsCircleItem::mousePressEvent ( QGraphicsSceneDragDropEvent *  event)
protectedvirtual

◆ mouseReleaseEvent() [1/3]

virtual void GraphicsCircleItem::mouseReleaseEvent ( QGraphicsSceneMouseEvent *  event)
protectedvirtual

◆ mouseReleaseEvent() [2/3]

virtual void GraphicsCircleItem::mouseReleaseEvent ( QGraphicsSceneMouseEvent *  event)
protectedvirtual

◆ mouseReleaseEvent() [3/3]

void GraphicsCircleItem::mouseReleaseEvent ( QGraphicsSceneMouseEvent *  event)
protectedvirtual

◆ setUnused() [1/3]

void GraphicsCircleItem::setUnused ( Nice::SeqPoint  _unused)

◆ setUnused() [2/3]

void GraphicsCircleItem::setUnused ( Nice::SeqPoint  _unused)

◆ setUnused() [3/3]

void GraphicsCircleItem::setUnused ( Nice::SeqPoint  _unused)

◆ slot_setBound [1/3]

void GraphicsCircleItem::slot_setBound ( Nice::Size  _bound)
slot

◆ slot_setBound [2/3]

void GraphicsCircleItem::slot_setBound ( Nice::Size  _bound)
slot

◆ slot_setBound [3/3]

void GraphicsCircleItem::slot_setBound ( Nice::Size  _bound)
slot

◆ slot_setPositions [1/3]

void GraphicsCircleItem::slot_setPositions ( Nice::SeqPoint  _pos)
slot

◆ slot_setPositions [2/3]

void GraphicsCircleItem::slot_setPositions ( Nice::SeqPoint  _pos)
slot

◆ slot_setPositions [3/3]

void GraphicsCircleItem::slot_setPositions ( Nice::SeqPoint  _pos)
slot

◆ slot_setSynchPos [1/3]

void GraphicsCircleItem::slot_setSynchPos ( bool  _synch)
slot

◆ slot_setSynchPos [2/3]

void GraphicsCircleItem::slot_setSynchPos ( bool  _synch)
slot

◆ slot_setSynchPos [3/3]

void GraphicsCircleItem::slot_setSynchPos ( bool  _synch)
slot

◆ updateGUI() [1/3]

virtual void GraphicsCircleItem::updateGUI ( const Nice::Any _val)
protectedvirtual

◆ updateGUI() [2/3]

virtual void GraphicsCircleItem::updateGUI ( const Nice::Any _val)
protectedvirtual

◆ updateGUI() [3/3]

void GraphicsCircleItem::updateGUI ( const Nice::Any _val)
protectedvirtual

Member Data Documentation

◆ _dragStart

QPointF GraphicsCircleItem::_dragStart
private

◆ m_bound

QRectF GraphicsCircleItem::m_bound
private

◆ m_center

bool GraphicsCircleItem::m_center
private

◆ m_circles

std::vector< QGraphicsEllipseItem * > GraphicsCircleItem::m_circles
private

◆ m_image

QImage * GraphicsCircleItem::m_image
private

◆ m_operation

operation GraphicsCircleItem::m_operation
private

◆ m_pos

Nice::SeqPoint GraphicsCircleItem::m_pos
private

◆ m_radius

float GraphicsCircleItem::m_radius
private

◆ m_selected

int GraphicsCircleItem::m_selected
private

◆ m_snapToPixel

bool GraphicsCircleItem::m_snapToPixel
private

◆ m_unused

std::vector< Nice::Point > GraphicsCircleItem::m_unused
private

◆ si

QGraphicsEllipseItem * GraphicsCircleItem::si
private

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