Represents a view on a drawing sheet.
More...
#include <cadex/Drawing/View.hxx>
|
| | View () |
| | Constructor.
|
| |
| | View (Initialized) |
| | Constructor.
|
| |
| | View (const Geom::Axis2d &thePosition) |
| | Constructor. Places the view at thePosition in the owning sheet.
|
| |
|
void | SetUuid (const cadex::Uuid &theUuid) |
| |
|
cadex::Uuid | Uuid () const |
| |
| Geom::Axis2d | Position () const |
| | Returns the position of the view in the owning sheet.
|
| |
| void | SetPosition (const Geom::Axis2d &thePosition) |
| | Sets the position of the view in the owning sheet.
|
| |
| Ratio | Scale () const |
| | Returns the scale of the view.
|
| |
| void | SetScale (const Ratio &theScale) |
| | Sets the scale of the view.
|
| |
| size_t | NumberOfElements () const |
| | Returns the number of elements in the view.
|
| |
| void | Add (const Element &theElement) |
| | Adds an element to the view.
|
| |
|
void | Accept (ElementVisitor &theVisitor) const |
| |
| size_t | Id () const |
| | Return unique identifier of public object.
|
| |
|
internal::BaseObjectImpl * | Impl () const |
| |
|
bool | IsNull () const |
| |
|
| operator bool () const |
| |
|
template<typename T > |
| bool | IsOfType () const |
| |
| template<typename T > |
| T * | Impl () const |
| | Reserved for internal use.
|
| |
|
|
static bool | CompareType (const BaseObject &theObject) |
| |
|
|
typedef std::shared_ptr< internal::BaseObjectImpl > | ImplType |
| |
|
| BaseObject (const ImplType &theImpl) |
| |
Represents a view on a drawing sheet.
Usually a view is a logical portion of the sheet, containing one of the literal views of the model (e.g. top view, isometric view, cutaway view). Following this idea, the view is defined by a position in the sheet and a scale (real-world model dimensions vs on-paper dimensions).
Generally an object of this class can contain any collection of drawing elements (i.e. 2D geometry), but it's expected that these elements together form a logically self-contained group.
- Examples
- MTKConverter/Program.cs, MTKConverter/main.cxx, exploring/drawings/Program.cs, nesting/nesting_computer/Program.cs, and nesting/nesting_computer/main.cxx.
◆ View() [1/3]
| cadex::Drawing::View::View |
( |
| ) |
|
|
inline |
◆ View() [2/3]
| cadex::Drawing::View::View |
( |
Initialized | | ) |
|
|
explicit |
◆ View() [3/3]
| cadex::Drawing::View::View |
( |
const Geom::Axis2d & | thePosition | ) |
|
|
explicit |
Constructor. Places the view at thePosition in the owning sheet.
◆ Add()
| void cadex::Drawing::View::Add |
( |
const Element & | theElement | ) |
|
◆ NumberOfElements()
| size_t cadex::Drawing::View::NumberOfElements |
( |
| ) |
const |
Returns the number of elements in the view.
◆ Position()
Returns the position of the view in the owning sheet.
◆ Scale()
| Ratio cadex::Drawing::View::Scale |
( |
| ) |
const |
Returns the scale of the view.
◆ SetPosition()
| void cadex::Drawing::View::SetPosition |
( |
const Geom::Axis2d & | thePosition | ) |
|
Sets the position of the view in the owning sheet.
◆ SetScale()
| void cadex::Drawing::View::SetScale |
( |
const Ratio & | theScale | ) |
|
Sets the scale of the view.