|
static TSetDrawProperties | propertiesLogicElementsDefault (const TTupleElementType &elementType, AbstractLogicsElement::EPartType partType) |
|
static TSetDrawProperties | propertiesLogicElementsSelected (const TTupleElementType &elementType, AbstractLogicsElement::EPartType partType) |
|
static TSetDrawProperties | propertiesLogicElementsHighlightedDefault (const TTupleElementType &elementType, AbstractLogicsElement::EPartType partType) |
|
static TSetDrawProperties | propertiesLogicElementsHighlightedSelected (const TTupleElementType &elementType, AbstractLogicsElement::EPartType partType) |
|
static TSetDrawProperties | propertiesLogicElementsWarningDefault (const TTupleElementType &elementType, AbstractLogicsElement::EPartType partType) |
|
static TSetDrawProperties | propertiesLogicElementsWarningSelected (const TTupleElementType &elementType, AbstractLogicsElement::EPartType partType) |
|
static double | defaultElementHeight (const TTupleElementType &elementType) |
|
static double | defaultElementWidth (const TTupleElementType &elementType) |
|
static void | drawBackground (const std::shared_ptr< AbstractLogicsElement > &logicsElement, IGraphics *graphics) |
|
static void | drawConnection (const std::shared_ptr< AbstractLogicsElement > &logicsElement, IGraphics *graphics) |
|
static void | drawElement (const std::shared_ptr< AbstractLogicsElement > &logicsElement, const std::string &lCName, IGraphics *graphics, bool isGrabbed, bool startDragging) |
|
static const TMapPartTypeDrawProperties & | drawingModeProperties (const TTupleElementType &elementType, const AbstractCanvasItem::TTupleDrawingMode &drawingMode) |
|
static AbstractCanvasItem::TPosition2d | elementCenter (const std::shared_ptr< AbstractLogicsElement > &logicsElement) |
|
static double | elementHeight (const std::shared_ptr< AbstractLogicsElement > &logicsElement) |
|
static double | elementWidth (const std::shared_ptr< AbstractLogicsElement > &logicsElement) |
|
static TTupleElementType | elementType (const std::shared_ptr< AbstractLogicsElement > &logicsElement) |
|
static TTupleElementType | elementType (const AbstractLogicsElement *logicsElement) |
|
static void | eraseElement (const std::shared_ptr< AbstractLogicsElement > &logicsElement, IGraphics *graphics) |
|
static graphics_t * | graphicsTypeUsed (IGraphics *graphics) |
|
static EMainShape & | mainShape (const TTupleElementType &elementType) |
|
static const AbstractLogicsElement::TMapIndexPartType & | parts (const TTupleElementType &elementType) |
|
static std::string | strDrawProperty (EDrawProperty drawProperty) |
|
Class collecting a number of static methods that draw elements and shapes regarding the logic editor.
It will use CGraphicsGooCanvas, since it provides methods to draw with more options.
NOTE: we consider a logic component (for instance AND and OR gates) a subclass of a logic element (background, component, connection,...)