Envision
A visual programming IDE for object-oriented languages
List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes
Comments::CommentDiagramShape Class Reference
Inheritance diagram for Comments::CommentDiagramShape:
Core::Reflect< Base >

Public Types

enum class  ShapeType : int { Rectangle , Ellipse , Diamond }
 

Public Member Functions

 CommentDiagramShape (int x, int y, int width, int height, ShapeType shapeType)
 
QPoint connectorPoint (int index) const
 
int connectorPointNear (QPoint pos) const
 
int index () const
 
Qt::PenStyle outlineType () const
 
QPoint pos () const
 
void setOutlineType (const Qt::PenStyle &outlineType)
 
void setShapeType (const ShapeType &type)
 
ShapeType shapeType () const
 
QSize size () const
 

Private Member Functions

void assureConnectorPointsUpToDate () const
 
void reCalculateConnectorPoints () const
 

Private Attributes

QVector< QPoint > connectorPoints_
 
int lastRevisionForConnectors_ = {revision() -1}
 

Additional Inherited Members

- Protected Types inherited from Core::Reflect< Base >
using Super = Reflect< Base >
 

Member Enumeration Documentation

◆ ShapeType

Enumerator
Rectangle 
Ellipse 
Diamond 

Constructor & Destructor Documentation

◆ CommentDiagramShape()

Comments::CommentDiagramShape::CommentDiagramShape ( int  x,
int  y,
int  width,
int  height,
ShapeType  shapeType 
)

Member Function Documentation

◆ assureConnectorPointsUpToDate()

void Comments::CommentDiagramShape::assureConnectorPointsUpToDate ( ) const
inlineprivate

◆ connectorPoint()

QPoint Comments::CommentDiagramShape::connectorPoint ( int  index) const
inline

◆ connectorPointNear()

int Comments::CommentDiagramShape::connectorPointNear ( QPoint  pos) const

◆ index()

int Comments::CommentDiagramShape::index ( ) const

◆ outlineType()

Qt::PenStyle Comments::CommentDiagramShape::outlineType ( ) const
inline

◆ pos()

QPoint Comments::CommentDiagramShape::pos ( ) const
inline

◆ reCalculateConnectorPoints()

void Comments::CommentDiagramShape::reCalculateConnectorPoints ( ) const
private

◆ setOutlineType()

void Comments::CommentDiagramShape::setOutlineType ( const Qt::PenStyle &  outlineType)
inline

◆ setShapeType()

void Comments::CommentDiagramShape::setShapeType ( const ShapeType type)
inline

◆ shapeType()

CommentDiagramShape::ShapeType Comments::CommentDiagramShape::shapeType ( ) const
inline

◆ size()

QSize Comments::CommentDiagramShape::size ( ) const
inline

Member Data Documentation

◆ connectorPoints_

QVector<QPoint> Comments::CommentDiagramShape::connectorPoints_
mutableprivate

◆ lastRevisionForConnectors_

int Comments::CommentDiagramShape::lastRevisionForConnectors_ = {revision() -1}
mutableprivate