Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
CGraphicsGooCanvas Class Reference

#include <CGraphicsGooCanvas.hpp>

Inheritance diagram for CGraphicsGooCanvas:
[legend]
Collaboration diagram for CGraphicsGooCanvas:
[legend]

Public Types

enum class  EDashedLineType { Continuous , Dashed4_2 }
 
enum class  EDetailLevel { Low , Normal , High , VeryHigh }
 
enum class  EDrawSolidType { Smooth , Solid , Wire }
 
enum class  ELight { General , Light0 }
 
enum class  ELightType { Ambient , Diffuse , Specular }
 
enum class  EMatrixModel { ModelView , Projection }
 

Public Member Functions

 CGraphicsGooCanvas ()
 
 CGraphicsGooCanvas (GtkWidget *gooCanvasWidget)
 
 CGraphicsGooCanvas (const CGraphicsGooCanvas &other)=delete
 
 CGraphicsGooCanvas (CGraphicsGooCanvas &&other)=delete
 
 ~CGraphicsGooCanvas () override=default
 
CGraphicsGooCanvasoperator= (const CGraphicsGooCanvas &other)=delete
 
CGraphicsGooCanvasoperator= (CGraphicsGooCanvas &&other)=delete
 
void setBackGroundColor (iv::types::color rgb) override
 
void setClearColor () override
 
void initDevice () override
 
void initLight () override
 
void clear () override
 
void defineMaterial (const iv::ui::graphics::Material *material, const bool &isChanged) override
 
bool isDefinedMaterial (const std::string &materialName) override
 
void pushMaterial () override
 
void setMaterial (const std::string &materialName) override
 
void popMaterial () override
 
void setColorRGB (iv::types::color rgb) override
 
void setColorARGB (iv::types::color argb) override
 
void setLineWidth (float width) override
 
void setAlpha (float alpha) override
 
void resetAlpha () override
 
void setOnTexture (bool enableTexture) override
 
std::shared_ptr< iv::ui::graphics::ImageloadImage (const iv::ui::resources::ImageResource &resource) override
 
void appendMatrix (const CMatrix4x4 &matrix) override
 
void setModelMatrix (IGraphics::EMatrixModel matrixModel) override
 
void popTransformation () override
 
void pushTransformation () override
 
void resetTransformation () override
 
void defineLight (IGraphics::ELight light, IGraphics::ELightType lightType, double rColor, double gColor, double bColor) override
 
void positionLight (IGraphics::ELight light, double x, double y, double z) override
 
void viewport (int32_t x, int32_t y, uint64_t sizeX, uint64_t sizeY) override
 
void definePerspective (double fovY, double ratioXForY, double zNear, double zFar) override
 
void defineOrthogonal (double xOrg, double yOrg, double zOrg, double xMin, double yMin, double zMin, double xMax, double yMax, double zMax) override
 
void positionCamera (double eyeX, double eyeY, double eyeZ, double pointReferenceX, double pointReferenceY, double pointReferenceZ, double upX, double upY, double upZ) override
 
void rotation (double angleDegrees, double Ux, double Uy, double Uz) override
 
void scale (double sx, double sy, double sz) override
 
void setNormal (double Nx, double Ny, double Nz) override
 
void translation (double tx, double ty, double tz) override
 
void drawContours (const std::vector< std::shared_ptr< std::vector< iv::math::geometry::Point3d > > > &contours) override
 
void drawFanTriangles (const float *points, const float *normals, const float *textureOpt, const float *rgbaOpt, uint64_t numPoints, const uint32_t *indVertex, uint64_t numVertex) override
 
void drawImage (double x, double y, double width, double height, const iv::ui::resources::ImageResource &resource) override
 
void drawImageRawSize (double x, double y, const iv::ui::resources::ImageResource &resource) override
 
void drawImageWithColor (double x, double y, iv::types::color colorRGB, double width, double height, const iv::ui::resources::ImageResource &resourceName) override
 
void drawLine (double x1, double y1, double z1, double x2, double y2, double z2) override
 
void drawLineWithStyle (double x1, double y1, double z1, double x2, double y2, double z2, IGraphics::EDashedLineType dashedLineType) override
 
void drawArc (double radiusMark, iv::types::radian angleInitial, iv::types::radian angleFinal, float thickness, uint64_t kPrvNumPoints) override
 
void drawPolyline (const float *vertex, uint64_t numVertex) override
 
void drawPolylineFilled (const float *vertex, uint64_t numVertex) override
 
void drawPolylinesWithColors (const std::shared_ptr< std::vector< iv::math::geometry::Point2d > > &points, const std::vector< iv::math::geometry::Point3d > &rgb) override
 
void drawQuads (double x1, double y1, double z1, double x2, double y2, double z2, double x3, double y3, double z3, double x4, double y4, double z4) override
 
void drawRect (double x1, double y1, double x2, double y2) override
 
void drawRectFilled (double x1, double y1, double x2, double y2) override
 
void drawStripTriangles (const float *points, const float *normals, const float *textureOpt, const float *rgbaOpt, uint64_t numPoints, const uint32_t *indVertex, uint64_t numVertex) override
 
void drawText (const std::string &text, double x, double y, double height, unsigned char justify) override
 
void drawTextWithDeviceHeight (const std::string &text, double x, double y, double height, unsigned char justify) override
 
void drawTriangle (double x1, double y1, double z1, double x2, double y2, double z2, double x3, double y3, double z3) override
 
void drawTriangles (const float *points, const float *normals, const float *textureOpt, const float *rgbaOpt, uint64_t numPoints, const uint32_t *indVertex, uint64_t numVertex) override
 
void drawUnitCone (IGraphics::EDetailLevel detailLevel) override
 
void drawUnitCube () override
 
void drawUnitCylinder (IGraphics::EDetailLevel detailLevel) override
 
void drawUnitDisk (IGraphics::EDetailLevel detailLevel) override
 
void drawUnitSphere (IGraphics::EDetailLevel detailLevel) override
 
bool hasDrawPolylineFilled () const override
 
void setModeDraw (IGraphics::EDrawSolidType drawSolidType) override
 
uint32_t blockTextWithModifiers (const std::string &text, const iv::ui::TextModifier &textModifier, double *widthText, double *heightTextOut) override
 
void drawBlockText (uint32_t idBlockText, double x, double y, double widthText, double heigthText, unsigned char justify) override
 
void endBlockText (uint32_t *idBlockText) override
 
bool hasBlockText () const override
 
uint32_t beginBlock () override
 
void drawBlock (uint32_t idBlock) override
 
void endBlock (uint32_t idBlock) override
 
bool hasManagerBlocks () const override
 
void removeBlock (uint32_t *idBlock) override
 
void beginStencilBuffer () override
 
void endStencilBuffer () override
 
void offStencilBuffer () override
 
void onStencilBuffer () override
 
void getCoordTextCornerLeftDown (const std::string &text, double x, double y, double heightCharacter, unsigned char justify, double *xCornerLeftDown, double *yCornerLeftDown, double *widthTextOpt, double *heightTextOpt) override
 
void getSizePixelToWorld (double sizePixelX, double sizePixelY, double *sizeWorldXOpt, double *sizeWorldYOpt) override
 
void getSizeText (const std::string &text, double heightCharacter, double *widthText, double *heightText) override
 
void setBlend (bool isEnable) override
 
void setTestDepth (bool isEnable) override
 
ICanvasItemrootItemGooCanvas ()
 
ICanvasItemnewGroupItemGooCanvas (ICanvasItem *parent,...)
 
ICanvasItemnewPathGooCanvas (ICanvasItem *parent, const std::string &pathData,...)
 
ICanvasItemnewRectGooCanvas (ICanvasItem *parent, double x, double y, double width, double height,...)
 
void updateRectGooCanvas (ICanvasItem *parent, int32_t childNum, double width, double height)
 
ICanvasItemnewEllipseGooCanvas (ICanvasItem *parent, double x, double y, double radiusX, double radiusY,...)
 
void updateEllipseGooCanvas (ICanvasItem *parent, int32_t childNum, double width, double height)
 
ICanvasItemnewTextGooCanvas (ICanvasItem *parent, const std::string &text, double x, double y, double width, iv::ui::eAnchorPoint anchorPoint,...)
 
void setChildTextPropertyGooCanvas (ICanvasItem *parent, int32_t childNum, const std::string &propertyName, const std::string &propertyValue)
 
void setChildTextPropertyGooCanvas (ICanvasItem *parent, int32_t childNum, std::string_view propertyName, double propertyValue)
 
void setItemSignalsGooCanvas (ICanvasItem *canvasItem, AbstractCanvasItem *abstractCanvasItem, iv::logic::eLogicsElementType lEType)
 
void setItemLineDashGooCanvas (ICanvasItem *canvasItem, uint16_t numDashes, float dashLength, float gapLength, float startOffset, bool activate)
 
void translateItemGooCanvas (ICanvasItem *canvasItem, double xDistance, double yDistance)
 

Static Public Member Functions

static void deleteItemGooCanvas (ICanvasItem *canvasItem)
 
static void raiseItemGooCanvas (ICanvasItem *canvasItem, ICanvasItem *aboveCanvasItem)
 
static void setItemTextPropertyGooCanvas (ICanvasItem *canvasItem, const std::string &propertyName, const std::string &propertyValue)
 
static void setItemPositionGooCanvas (ICanvasItem *canvasItem, double x, double y)
 
static void setItemStackIndexGooCanvas (ICanvasItem *parent, ICanvasItem *child, int32_t childIndex)
 
static void grabItemGooCanvas (ICanvasItem *canvasItem, bool grab)
 

Static Public Attributes

static constexpr uint32_t BlockNull = UINT_MAX
 

Private Attributes

GtkWidget * m_gooCanvasWidgetRef
 

Member Enumeration Documentation

◆ EDashedLineType

enum class IGraphics::EDashedLineType
stronginherited
Enumerator
Continuous 
Dashed4_2 

◆ EDetailLevel

enum class IGraphics::EDetailLevel
stronginherited
Enumerator
Low 
Normal 
High 
VeryHigh 

◆ EDrawSolidType

enum class IGraphics::EDrawSolidType
stronginherited
Enumerator
Smooth 
Solid 
Wire 

◆ ELight

enum class IGraphics::ELight
stronginherited
Enumerator
General 
Light0 

◆ ELightType

enum class IGraphics::ELightType
stronginherited
Enumerator
Ambient 
Diffuse 
Specular 

◆ EMatrixModel

enum class IGraphics::EMatrixModel
stronginherited
Enumerator
ModelView 
Projection 

Constructor & Destructor Documentation

◆ CGraphicsGooCanvas() [1/4]

CGraphicsGooCanvas::CGraphicsGooCanvas ( )

◆ CGraphicsGooCanvas() [2/4]

CGraphicsGooCanvas::CGraphicsGooCanvas ( GtkWidget * gooCanvasWidget)
explicit

◆ CGraphicsGooCanvas() [3/4]

CGraphicsGooCanvas::CGraphicsGooCanvas ( const CGraphicsGooCanvas & other)
delete

◆ CGraphicsGooCanvas() [4/4]

CGraphicsGooCanvas::CGraphicsGooCanvas ( CGraphicsGooCanvas && other)
delete

◆ ~CGraphicsGooCanvas()

CGraphicsGooCanvas::~CGraphicsGooCanvas ( )
overridedefault

Member Function Documentation

◆ appendMatrix()

void CGraphicsGooCanvas::appendMatrix ( const CMatrix4x4 & matrix)
overridevirtual

Implements IGraphics.

◆ beginBlock()

uint32_t CGraphicsGooCanvas::beginBlock ( )
overridevirtual

Implements IGraphics.

◆ beginStencilBuffer()

void CGraphicsGooCanvas::beginStencilBuffer ( )
overridevirtual

Implements IGraphics.

◆ blockTextWithModifiers()

uint32_t CGraphicsGooCanvas::blockTextWithModifiers ( const std::string & text,
const iv::ui::TextModifier & textModifier,
double * widthText,
double * heightTextOut )
overridevirtual

Implements IGraphics.

◆ clear()

void CGraphicsGooCanvas::clear ( )
overridevirtual

Implements IGraphics.

◆ defineLight()

void CGraphicsGooCanvas::defineLight ( IGraphics::ELight light,
IGraphics::ELightType lightType,
double rColor,
double gColor,
double bColor )
overridevirtual

Implements IGraphics.

◆ defineMaterial()

void CGraphicsGooCanvas::defineMaterial ( const iv::ui::graphics::Material * material,
const bool & isChanged )
overridevirtual

Implements IGraphics.

◆ defineOrthogonal()

void CGraphicsGooCanvas::defineOrthogonal ( double xOrg,
double yOrg,
double zOrg,
double xMin,
double yMin,
double zMin,
double xMax,
double yMax,
double zMax )
overridevirtual

Implements IGraphics.

◆ definePerspective()

void CGraphicsGooCanvas::definePerspective ( double fovY,
double ratioXForY,
double zNear,
double zFar )
overridevirtual

Implements IGraphics.

◆ deleteItemGooCanvas()

void CGraphicsGooCanvas::deleteItemGooCanvas ( ICanvasItem * canvasItem)
static

CGraphicsGooCanvas::deleteItemGooCanvas

Deletes item in the canvas

Parameters
[in]itemCanvas item to delete.

◆ drawArc()

void CGraphicsGooCanvas::drawArc ( double radiusMark,
iv::types::radian angleInitial,
iv::types::radian angleFinal,
float thickness,
uint64_t kPrvNumPoints )
overridevirtual

Implements IGraphics.

◆ drawBlock()

void CGraphicsGooCanvas::drawBlock ( uint32_t idBlock)
overridevirtual

Implements IGraphics.

◆ drawBlockText()

void CGraphicsGooCanvas::drawBlockText ( uint32_t idBlockText,
double x,
double y,
double widthText,
double heigthText,
unsigned char justify )
overridevirtual

Implements IGraphics.

◆ drawContours()

void CGraphicsGooCanvas::drawContours ( const std::vector< std::shared_ptr< std::vector< iv::math::geometry::Point3d > > > & contours)
overridevirtual

Implements IGraphics.

◆ drawFanTriangles()

void CGraphicsGooCanvas::drawFanTriangles ( const float * points,
const float * normals,
const float * textureOpt,
const float * rgbaOpt,
uint64_t numPoints,
const uint32_t * indVertex,
uint64_t numVertex )
overridevirtual

Implements IGraphics.

◆ drawImage()

void CGraphicsGooCanvas::drawImage ( double x,
double y,
double width,
double height,
const iv::ui::resources::ImageResource & resource )
overridevirtual

Implements IGraphics.

◆ drawImageRawSize()

void CGraphicsGooCanvas::drawImageRawSize ( double x,
double y,
const iv::ui::resources::ImageResource & resource )
overridevirtual

Implements IGraphics.

◆ drawImageWithColor()

void CGraphicsGooCanvas::drawImageWithColor ( double x,
double y,
iv::types::color colorRGB,
double width,
double height,
const iv::ui::resources::ImageResource & resourceName )
overridevirtual

Implements IGraphics.

◆ drawLine()

void CGraphicsGooCanvas::drawLine ( double x1,
double y1,
double z1,
double x2,
double y2,
double z2 )
overridevirtual

Implements IGraphics.

◆ drawLineWithStyle()

void CGraphicsGooCanvas::drawLineWithStyle ( double x1,
double y1,
double z1,
double x2,
double y2,
double z2,
IGraphics::EDashedLineType dashedLineType )
overridevirtual

Implements IGraphics.

◆ drawPolyline()

void CGraphicsGooCanvas::drawPolyline ( const float * vertex,
uint64_t numVertex )
overridevirtual

Implements IGraphics.

◆ drawPolylineFilled()

void CGraphicsGooCanvas::drawPolylineFilled ( const float * vertex,
uint64_t numVertex )
overridevirtual

Implements IGraphics.

◆ drawPolylinesWithColors()

void CGraphicsGooCanvas::drawPolylinesWithColors ( const std::shared_ptr< std::vector< iv::math::geometry::Point2d > > & points,
const std::vector< iv::math::geometry::Point3d > & rgb )
overridevirtual

Implements IGraphics.

◆ drawQuads()

void CGraphicsGooCanvas::drawQuads ( double x1,
double y1,
double z1,
double x2,
double y2,
double z2,
double x3,
double y3,
double z3,
double x4,
double y4,
double z4 )
overridevirtual

Implements IGraphics.

◆ drawRect()

void CGraphicsGooCanvas::drawRect ( double x1,
double y1,
double x2,
double y2 )
overridevirtual

Implements IGraphics.

◆ drawRectFilled()

void CGraphicsGooCanvas::drawRectFilled ( double x1,
double y1,
double x2,
double y2 )
overridevirtual

Implements IGraphics.

◆ drawStripTriangles()

void CGraphicsGooCanvas::drawStripTriangles ( const float * points,
const float * normals,
const float * textureOpt,
const float * rgbaOpt,
uint64_t numPoints,
const uint32_t * indVertex,
uint64_t numVertex )
overridevirtual

Implements IGraphics.

◆ drawText()

void CGraphicsGooCanvas::drawText ( const std::string & text,
double x,
double y,
double height,
unsigned char justify )
overridevirtual

Implements IGraphics.

◆ drawTextWithDeviceHeight()

void CGraphicsGooCanvas::drawTextWithDeviceHeight ( const std::string & text,
double x,
double y,
double height,
unsigned char justify )
overridevirtual

Implements IGraphics.

◆ drawTriangle()

void CGraphicsGooCanvas::drawTriangle ( double x1,
double y1,
double z1,
double x2,
double y2,
double z2,
double x3,
double y3,
double z3 )
overridevirtual

Implements IGraphics.

◆ drawTriangles()

void CGraphicsGooCanvas::drawTriangles ( const float * points,
const float * normals,
const float * textureOpt,
const float * rgbaOpt,
uint64_t numPoints,
const uint32_t * indVertex,
uint64_t numVertex )
overridevirtual

Implements IGraphics.

◆ drawUnitCone()

void CGraphicsGooCanvas::drawUnitCone ( IGraphics::EDetailLevel detailLevel)
overridevirtual

Implements IGraphics.

◆ drawUnitCube()

void CGraphicsGooCanvas::drawUnitCube ( )
overridevirtual

Implements IGraphics.

◆ drawUnitCylinder()

void CGraphicsGooCanvas::drawUnitCylinder ( IGraphics::EDetailLevel detailLevel)
overridevirtual

Implements IGraphics.

◆ drawUnitDisk()

void CGraphicsGooCanvas::drawUnitDisk ( IGraphics::EDetailLevel detailLevel)
overridevirtual

Implements IGraphics.

◆ drawUnitSphere()

void CGraphicsGooCanvas::drawUnitSphere ( IGraphics::EDetailLevel detailLevel)
overridevirtual

Implements IGraphics.

◆ endBlock()

void CGraphicsGooCanvas::endBlock ( uint32_t idBlock)
overridevirtual

Implements IGraphics.

◆ endBlockText()

void CGraphicsGooCanvas::endBlockText ( uint32_t * idBlockText)
overridevirtual

Implements IGraphics.

◆ endStencilBuffer()

void CGraphicsGooCanvas::endStencilBuffer ( )
overridevirtual

Implements IGraphics.

◆ getCoordTextCornerLeftDown()

void CGraphicsGooCanvas::getCoordTextCornerLeftDown ( const std::string & text,
double x,
double y,
double heightCharacter,
unsigned char justify,
double * xCornerLeftDown,
double * yCornerLeftDown,
double * widthTextOpt,
double * heightTextOpt )
overridevirtual

Implements IGraphics.

◆ getSizePixelToWorld()

void CGraphicsGooCanvas::getSizePixelToWorld ( double sizePixelX,
double sizePixelY,
double * sizeWorldXOpt,
double * sizeWorldYOpt )
overridevirtual

Implements IGraphics.

◆ getSizeText()

void CGraphicsGooCanvas::getSizeText ( const std::string & text,
double heightCharacter,
double * widthText,
double * heightText )
overridevirtual

Implements IGraphics.

◆ grabItemGooCanvas()

void CGraphicsGooCanvas::grabItemGooCanvas ( ICanvasItem * canvasItem,
bool grab )
static

CGraphicsGooCanvas::grabItemGooCanvas

Grabs or ungrabs an item in the canvas, depending on the parameter 'grab'.

Parameters
[in]canvasItemItem to grab/ungrab.
[in]grabFlag indicating whether to grab the item (true) or as ungrab it (false).

◆ hasBlockText()

bool CGraphicsGooCanvas::hasBlockText ( ) const
nodiscardoverridevirtual

Implements IGraphics.

◆ hasDrawPolylineFilled()

bool CGraphicsGooCanvas::hasDrawPolylineFilled ( ) const
nodiscardoverridevirtual

Implements IGraphics.

◆ hasManagerBlocks()

bool CGraphicsGooCanvas::hasManagerBlocks ( ) const
nodiscardoverridevirtual

Implements IGraphics.

◆ initDevice()

void CGraphicsGooCanvas::initDevice ( )
overridevirtual

Implements IGraphics.

◆ initLight()

void CGraphicsGooCanvas::initLight ( )
overridevirtual

Implements IGraphics.

◆ isDefinedMaterial()

bool CGraphicsGooCanvas::isDefinedMaterial ( const std::string & materialName)
overridevirtual

Implements IGraphics.

◆ loadImage()

std::shared_ptr< iv::ui::graphics::Image > CGraphicsGooCanvas::loadImage ( const iv::ui::resources::ImageResource & resource)
overridevirtual

Implements IGraphics.

◆ newEllipseGooCanvas()

ICanvasItem * CGraphicsGooCanvas::newEllipseGooCanvas ( ICanvasItem * parent,
double x,
double y,
double radiusX,
double radiusY,
... )

CGraphicsGooCanvas::drawEllipseGooCanvas

Creates -to draw- an ellipse using goocanvas

Parameters
[in]parentParent item that will own the new item.
[in]xPosition x.
[in]yPosition y.
[in]radiusXRadius of the ellipses in axis x.
[in]radiusYRadius of the ellipses in axis y.
[in]...Optional pairs of GooCanvasEllipse property names and values, and a terminating nullptr.

◆ newGroupItemGooCanvas()

ICanvasItem * CGraphicsGooCanvas::newGroupItemGooCanvas ( ICanvasItem * parent,
... )

CGraphicsGooCanvas::createGroupGooCanvas

Creates a new group item

Parameters
[in]parentParent item that will own the new item, or nullptr to set gooCanvas widget as the parent.
[in]...Optional pairs of GooCanvasGroup property names and values, and a terminating nullptr.

◆ newPathGooCanvas()

ICanvasItem * CGraphicsGooCanvas::newPathGooCanvas ( ICanvasItem * parent,
const std::string & pathData,
... )

CGraphicsGooCanvas::drawPathGooCanvas

Creates -to draw- a path (a series of different shaped segments) using goocanvas

Parameters
[in]parentParent item that will own the new item.
[in]pathDatadata indicating the segments to draw in the path.
[in]...Optional pairs of GooCanvasText property names and values, and a terminating nullptr.

◆ newRectGooCanvas()

ICanvasItem * CGraphicsGooCanvas::newRectGooCanvas ( ICanvasItem * parent,
double x,
double y,
double width,
double height,
... )

CGraphicsGooCanvas::drawRectGooCanvas

Creates -to draw- a rectangle using goocanvas

Parameters
[in]parentParent item that will own the new item.
[in]xPosition x.
[in]yPosition y.
[in]widthWidth of the rectangle.
[in]heightHeight of the rectangle.
[in]...Optional pairs of GooCanvasRect property names and values, and a terminating nullptr.

◆ newTextGooCanvas()

ICanvasItem * CGraphicsGooCanvas::newTextGooCanvas ( ICanvasItem * parent,
const std::string & text,
double x,
double y,
double width,
iv::ui::eAnchorPoint anchorPoint,
... )

CGraphicsGooCanvas::drawTextGooCanvas

Creates -to draw- text using goocanvas

Parameters
[in]parentParent item that will own the new item.
[in]textText to draw.
[in]xPosition x.
[in]yPosition y.
[in]widthWidth of the text to draw (-1 if unlimited).
[in]...Optional pairs of GooCanvasText property names and values, and a terminating nullptr.

◆ offStencilBuffer()

void CGraphicsGooCanvas::offStencilBuffer ( )
overridevirtual

Implements IGraphics.

◆ onStencilBuffer()

void CGraphicsGooCanvas::onStencilBuffer ( )
overridevirtual

Implements IGraphics.

◆ operator=() [1/2]

CGraphicsGooCanvas & CGraphicsGooCanvas::operator= ( CGraphicsGooCanvas && other)
delete

◆ operator=() [2/2]

CGraphicsGooCanvas & CGraphicsGooCanvas::operator= ( const CGraphicsGooCanvas & other)
delete

◆ popMaterial()

void CGraphicsGooCanvas::popMaterial ( )
overridevirtual

Implements IGraphics.

◆ popTransformation()

void CGraphicsGooCanvas::popTransformation ( )
overridevirtual

Implements IGraphics.

◆ positionCamera()

void CGraphicsGooCanvas::positionCamera ( double eyeX,
double eyeY,
double eyeZ,
double pointReferenceX,
double pointReferenceY,
double pointReferenceZ,
double upX,
double upY,
double upZ )
overridevirtual

Implements IGraphics.

◆ positionLight()

void CGraphicsGooCanvas::positionLight ( IGraphics::ELight light,
double x,
double y,
double z )
overridevirtual

Implements IGraphics.

◆ pushMaterial()

void CGraphicsGooCanvas::pushMaterial ( )
overridevirtual

Implements IGraphics.

◆ pushTransformation()

void CGraphicsGooCanvas::pushTransformation ( )
overridevirtual

Implements IGraphics.

◆ raiseItemGooCanvas()

void CGraphicsGooCanvas::raiseItemGooCanvas ( ICanvasItem * canvasItem,
ICanvasItem * aboveCanvasItem )
static

CGraphicsGooCanvas::raiseItemGooCanvas

Raises an item in the stacking order above another item.

Parameters
[in]canvasItemItem to raise in the stacking order.
[in]aboveCanvasItemItem to raise canvasItem above, or NULL to raise canvasItem to the top of the stack.

◆ removeBlock()

void CGraphicsGooCanvas::removeBlock ( uint32_t * idBlock)
overridevirtual

Implements IGraphics.

◆ resetAlpha()

void CGraphicsGooCanvas::resetAlpha ( )
overridevirtual

Implements IGraphics.

◆ resetTransformation()

void CGraphicsGooCanvas::resetTransformation ( )
overridevirtual

Implements IGraphics.

◆ rootItemGooCanvas()

ICanvasItem * CGraphicsGooCanvas::rootItemGooCanvas ( )

CGraphicsGooCanvas::createGroupGooCanvas

Returns a new item for the root of the canvas

◆ rotation()

void CGraphicsGooCanvas::rotation ( double angleDegrees,
double Ux,
double Uy,
double Uz )
overridevirtual

Implements IGraphics.

◆ scale()

void CGraphicsGooCanvas::scale ( double sx,
double sy,
double sz )
overridevirtual

Implements IGraphics.

◆ setAlpha()

void CGraphicsGooCanvas::setAlpha ( float alpha)
overridevirtual

Implements IGraphics.

◆ setBackGroundColor()

void CGraphicsGooCanvas::setBackGroundColor ( iv::types::color rgb)
overridevirtual

Implements IGraphics.

◆ setBlend()

void CGraphicsGooCanvas::setBlend ( bool isEnable)
overridevirtual

Implements IGraphics.

◆ setChildTextPropertyGooCanvas() [1/2]

void CGraphicsGooCanvas::setChildTextPropertyGooCanvas ( ICanvasItem * parent,
int32_t childNum,
const std::string & propertyName,
const std::string & propertyValue )

CGraphicsGooCanvas::setChildTextPropertyGooCanvas

Sets child property.

Parameters
[in]parentParent item of the child to update.
[in]childNumChild index to update.
[in]propertyNameName of the property to set.
[in]propertyValueValue of the property to set.

◆ setChildTextPropertyGooCanvas() [2/2]

void CGraphicsGooCanvas::setChildTextPropertyGooCanvas ( ICanvasItem * parent,
int32_t childNum,
std::string_view propertyName,
double propertyValue )

◆ setClearColor()

void CGraphicsGooCanvas::setClearColor ( )
overridevirtual

Implements IGraphics.

◆ setColorARGB()

void CGraphicsGooCanvas::setColorARGB ( iv::types::color argb)
overridevirtual

Implements IGraphics.

◆ setColorRGB()

void CGraphicsGooCanvas::setColorRGB ( iv::types::color rgb)
overridevirtual

Implements IGraphics.

◆ setItemLineDashGooCanvas()

void CGraphicsGooCanvas::setItemLineDashGooCanvas ( ICanvasItem * canvasItem,
uint16_t numDashes,
float dashLength,
float gapLength,
float startOffset,
bool activate )

CGraphicsGooCanvas::setItemLineDashGooCanvas

Draws an item with a line dash or not, depending on the parameter 'activate'.

Parameters
[in]canvasItemItem to set/unset a line dash to.
[in]activateFlag indicating whether to draw the line dash (true) or not (false).

◆ setItemPositionGooCanvas()

void CGraphicsGooCanvas::setItemPositionGooCanvas ( ICanvasItem * canvasItem,
double x,
double y )
static

CGraphicsGooCanvas::setItemPositionGooCanvas

Sets item position.

Parameters
[in]canvasItemItem to set the position.
[in]xX coordinate.
[in]yY coordinate.

◆ setItemSignalsGooCanvas()

void CGraphicsGooCanvas::setItemSignalsGooCanvas ( ICanvasItem * canvasItem,
AbstractCanvasItem * abstractCanvasItem,
iv::logic::eLogicsElementType lEType )

CGraphicsGooCanvas::setItemSignalsGooCanvas

Sets item signals.

Parameters
[in]canvasItemItem to set the signals too.

◆ setItemStackIndexGooCanvas()

void CGraphicsGooCanvas::setItemStackIndexGooCanvas ( ICanvasItem * parent,
ICanvasItem * child,
int32_t childIndex )
static

CGraphicsGooCanvas::setItemStackIndexGooCanvas

Sets stack index of the child item in the parent item.

Parameters
[in]parentParent item of the child to set index of.
[in]childChild item for which to update the index.

◆ setItemTextPropertyGooCanvas()

void CGraphicsGooCanvas::setItemTextPropertyGooCanvas ( ICanvasItem * canvasItem,
const std::string & propertyName,
const std::string & propertyValue )
static

CGraphicsGooCanvas::setItemTextPropertyGooCanvas

Updates a text property of a goocanvas item.

Parameters
[in]canvasItemItem whose text property to update.
[in]propertyNameName of the property to set.
[in]propertyValueValue of the property to set.

◆ setLineWidth()

void CGraphicsGooCanvas::setLineWidth ( float width)
overridevirtual

Implements IGraphics.

◆ setMaterial()

void CGraphicsGooCanvas::setMaterial ( const std::string & materialName)
overridevirtual

Implements IGraphics.

◆ setModeDraw()

void CGraphicsGooCanvas::setModeDraw ( IGraphics::EDrawSolidType drawSolidType)
overridevirtual

Implements IGraphics.

◆ setModelMatrix()

void CGraphicsGooCanvas::setModelMatrix ( IGraphics::EMatrixModel matrixModel)
overridevirtual

Implements IGraphics.

◆ setNormal()

void CGraphicsGooCanvas::setNormal ( double Nx,
double Ny,
double Nz )
overridevirtual

Implements IGraphics.

◆ setOnTexture()

void CGraphicsGooCanvas::setOnTexture ( bool enableTexture)
overridevirtual

Implements IGraphics.

◆ setTestDepth()

void CGraphicsGooCanvas::setTestDepth ( bool isEnable)
overridevirtual

Implements IGraphics.

◆ translateItemGooCanvas()

void CGraphicsGooCanvas::translateItemGooCanvas ( ICanvasItem * canvasItem,
double xDistance,
double yDistance )

CGraphicsGooCanvas::translateItemGooCanvas

Translates an object a distance <xDistance, yDistance>

Parameters
[in]canvasItemItem to draw as selected/unselected.
[in]xDistanceX value of the distance to move the item.
[in]yDistanceY value of the distance to move the item.

◆ translation()

void CGraphicsGooCanvas::translation ( double tx,
double ty,
double tz )
overridevirtual

Implements IGraphics.

◆ updateEllipseGooCanvas()

void CGraphicsGooCanvas::updateEllipseGooCanvas ( ICanvasItem * parent,
int32_t childNum,
double width,
double height )

CGraphicsGooCanvas::updateEllipseGooCanvas

Updates ellipse using goocanvas

Parameters
[in]parentParent item of the child to update.
[in]childNumChild index to update.
[in]widthWidth of the ellipse.
[in]heightHeight of the ellipse.

◆ updateRectGooCanvas()

void CGraphicsGooCanvas::updateRectGooCanvas ( ICanvasItem * parent,
int32_t childNum,
double width,
double height )

CGraphicsGooCanvas::updateRectGooCanvas

Updates rectangle using goocanvas

Parameters
[in]parentParent item of the child to update.
[in]childNumChild index to update.
[in]widthWidth of the rectangle.
[in]heightHeight of the rectangle.

◆ viewport()

void CGraphicsGooCanvas::viewport ( int32_t x,
int32_t y,
uint64_t sizeX,
uint64_t sizeY )
overridevirtual

Implements IGraphics.

Member Data Documentation

◆ BlockNull

uint32_t IGraphics::BlockNull = UINT_MAX
staticconstexprinherited

◆ m_gooCanvasWidgetRef

GtkWidget* CGraphicsGooCanvas::m_gooCanvasWidgetRef
private

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