PocketWordParserInternal::Shape Class Reference

a shape More...

Public Types

enum  Type {
  Circle , Line , Group , Polygon ,
  Rectangle , Triangle , Unknown
}
 the differents type More...

Public Member Functions

 Shape ()
 constructor
bool updateShapeAndPos (WPSGraphicShape &shape, WPSPosition &pos, WPSTransformation const &transf) const
 try to get the final shape and the final position

Public Attributes

Type m_type
 the shape type
Vec2i m_origin
 the local origin and the size of the bdbox
Vec2i m_size
WPSGraphicStyle m_style
 the graphic style
std::vector< Vec2i > m_vertices
 the line and triangle vertices
std::vector< int > m_children
 the child

Detailed Description

a shape

Member Enumeration Documentation

◆ Type

the differents type

Enumerator
Circle 
Line 
Group 
Polygon 
Rectangle 
Triangle 
Unknown 

Constructor & Destructor Documentation

◆ Shape()

PocketWordParserInternal::Shape::Shape ( )
inline

constructor

Member Function Documentation

◆ updateShapeAndPos()

bool PocketWordParserInternal::Shape::updateShapeAndPos ( WPSGraphicShape & shape,
WPSPosition & pos,
WPSTransformation const & transf ) const
inline

try to get the final shape and the final position

Referenced by PocketWordParser::sendShape().

Member Data Documentation

◆ m_children

std::vector<int> PocketWordParserInternal::Shape::m_children

◆ m_origin

Vec2i PocketWordParserInternal::Shape::m_origin

the local origin and the size of the bdbox

Referenced by PocketWordParser::readShape(), PocketWordParser::sendShape(), Shape(), and updateShapeAndPos().

◆ m_size

Vec2i PocketWordParserInternal::Shape::m_size

◆ m_style

WPSGraphicStyle PocketWordParserInternal::Shape::m_style

◆ m_type

Type PocketWordParserInternal::Shape::m_type

◆ m_vertices

std::vector<Vec2i> PocketWordParserInternal::Shape::m_vertices

the line and triangle vertices

Referenced by PocketWordParser::readShape(), Shape(), and updateShapeAndPos().


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

Generated on for libwps by doxygen 1.17.0