LibBoard::Group Struct Reference

A group of shapes. A group is basically a ShapeList except that when rendered in either an SVG of a FIG file is a true compound element. More...

#include <ShapeList.h>

Inheritance diagram for LibBoard::Group:

LibBoard::ShapeList LibBoard::Shape

List of all members.

Public Member Functions

 Group (int depth=-1)
 Group (const Group &other)
const std::string & name () const
Group rotated (double angle, const Point &center)
Group rotated (double angle)
Group translated (double dx, double dy)
Group scaled (double sx, double sy)
Group scaled (double s)
void flushPostscript (std::ostream &stream, const TransformEPS &transform) const
void flushFIG (std::ostream &stream, const TransformFIG &transform, std::map< Color, int > &colormap) const
void flushSVG (std::ostream &stream, const TransformSVG &transform) const
Groupoperator= (const Group &other)
Shapeclone () const


Detailed Description

A group of shapes. A group is basically a ShapeList except that when rendered in either an SVG of a FIG file is a true compound element.

The Group structure.

Examples:

examples/arrows.cpp, examples/ellipse.cpp, examples/example4.cpp, and examples/koch.cpp.


Member Function Documentation

const std::string & LibBoard::Group::name (  )  const [virtual]

Returns the generic name of the shape (e.g., Circle, Rectangle, etc.)

Returns:

Reimplemented from LibBoard::ShapeList.

void LibBoard::Group::flushPostscript ( std::ostream &  stream,
const TransformEPS transform 
) const [virtual]

Writes the EPS code of the shape in a stream according to a transform.

Parameters:
stream The output stream.
transform A 2D transform to be applied.

Reimplemented from LibBoard::ShapeList.

References LibBoard::ShapeList::flushPostscript().

void LibBoard::Group::flushFIG ( std::ostream &  stream,
const TransformFIG transform,
std::map< Color, int > &  colormap 
) const [virtual]

Writes the FIG code of the shape in a stream according to a transform.

Parameters:
stream The output stream.
transform A 2D transform to be applied.

Reimplemented from LibBoard::ShapeList.

References LibBoard::Shape::bbox(), LibBoard::ShapeList::boundingBox(), LibBoard::ShapeList::flushFIG(), LibBoard::Rect::height, LibBoard::Rect::left, LibBoard::Transform::mapX(), LibBoard::TransformFIG::mapY(), LibBoard::Rect::top, and LibBoard::Rect::width.

void LibBoard::Group::flushSVG ( std::ostream &  stream,
const TransformSVG transform 
) const [virtual]

Writes the SVG code of the shape in a stream according to a transform.

Parameters:
stream The output stream.
transform A 2D transform to be applied.

Reimplemented from LibBoard::ShapeList.

References LibBoard::ShapeList::flushSVG().

Shape * LibBoard::Group::clone (  )  const [virtual]

Return a copy of the shape.

Returns:

Reimplemented from LibBoard::ShapeList.


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

Generated on Mon Jan 19 09:48:19 2009 for Board by  doxygen 1.5.6