|
std::string | getTypeName () const override |
| Get name of object type (like: "block2d", "shelf", "stack3d", etc.).
|
|
void | setLeftEdge (const edge::Strategy &newValue) |
| Set strategy for the left edge.
|
|
const edge::Strategy & | getLeftEdge () |
| Get left edge strategy.
|
|
void | setRightEdge (const edge::Strategy &newValue) |
| Set strategy for the right edge.
|
|
const edge::Strategy & | getRightEdge () |
| Get right edge strategy.
|
|
void | setBottomEdge (const edge::Strategy &newValue) |
| Set strategy for the bottom edge.
|
|
const edge::Strategy & | getBottomEdge () |
| Get bottom edge strategy.
|
|
void | setTopEdge (const edge::Strategy &newValue) |
| Set strategy for the top edge.
|
|
const edge::Strategy & | getTopEdge () |
| Get top edge strategy.
|
|
void | setEdges (Direction direction, const edge::Strategy &border_lo, const edge::Strategy &border_hi) override |
| Set strategies for both edges in specified direction.
|
|
void | setEdge (Direction direction, bool higher, const edge::Strategy &border_to_set) override |
| Set strategies for a edge in specified direction.
|
|
const edge::Strategy & | getEdge (Direction direction, bool higher) const override |
| Get edge strategy or throw exception if edge can't be get for this calculation space or direction.
|
|
void | setFrontMaterial (const shared_ptr< Material > material) |
| Set material on the positive side of the axis along the extrusion.
|
|
shared_ptr< Material > | getFrontMaterial () const |
|
void | setBackMaterial (const shared_ptr< Material > material) |
| Set material on the negative side of the axis along the extrusion.
|
|
shared_ptr< Material > | getBackMaterial () const |
|
| Geometry2DCartesian (shared_ptr< Extrusion > extrusion=shared_ptr< Extrusion >()) |
| Construct geometry over given extrusion object.
|
|
| Geometry2DCartesian (shared_ptr< GeometryObjectD< 2 > > childGeometry, double length) |
| Construct geometry over extrusion object build on top of given 2D childGeometry and with given length .
|
|
shared_ptr< GeometryObjectD< 2 > > | getChild () const override |
| Get child of extrusion object used by this geometry.
|
|
shared_ptr< GeometryObjectD< 2 > > | getChildUnsafe () const override |
| Get child geometry.
|
|
void | removeAtUnsafe (std::size_t) override |
| Remove child at given index .
|
|
shared_ptr< Material > | getMaterial (const Vec< 2, double > &p) const override |
|
shared_ptr< Extrusion > | getExtrusion () const |
| Get extrusion object included in this geometry.
|
|
shared_ptr< GeometryObjectD< 3 > > | getObject3D () const override |
| Get extrusion object included in this geometry.
|
|
void | setExtrusion (shared_ptr< Extrusion > extrusion) |
| Set new extrusion object for this geometry and inform observers about changing of geometry.
|
|
CoordsType | wrapEdges (CoordsType p) const override |
|
shared_ptr< GeometryObject > | shallowCopy () const override |
| Get shallow copy of this.
|
|
shared_ptr< GeometryObject > | deepCopy (std::map< const GeometryObject *, shared_ptr< GeometryObject > > &copied) const override |
| Get deep copy of this.
|
|
void | addPointsAlongToSet (std::set< double > &points, Primitive< 3 >::Direction direction, unsigned=0, double=0) const override |
| Add characteristic points information along specified axis to set.
|
|
std::set< double > | getPointsAlong (Primitive< 3 >::Direction direction) const |
| Get characteristic points information along specified axis.
|
|
void | addLineSegmentsToSet (std::set< typename GeometryObjectD< 2 >::LineSegment > &segments) const |
| Add characteristic points to the set and edges connecting them.
|
|
std::set< typename GeometryObjectD< 2 >::LineSegment > | getLineSegments () const |
| Add characteristic points to the set and edges connecting them.
|
|
shared_ptr< const GeometryObject > | changedVersion (const Changer &changer, Vec< 3, double > *translation=0) const override |
| Get this or copy of this child with some changes in subtree.
|
|
void | writeXML (XMLWriter::Element &parent_xml_object, WriteXMLCallback &write_cb, AxisNames axes) const override |
| Write geometry tree branch rooted by this to XML.
|
|
int | getDimensionsCount () const override |
| Get number of dimensions.
|
|
virtual shared_ptr< Material > | getMaterial (const Vec< dim, double > &p) const |
| Get material in point p of child space.
|
|
const Primitive< dim >::Box & | getChildBoundingBox () const |
| Get bounding box of child geometry.
|
|
bool | hasInSubtree (const GeometryObject &el) const override |
| Check if el is in subtree with child (see getChild) of this in root.
|
|
bool | hasInSubtree (shared_ptr< const GeometryObject > el, const PathHints *pathHints) const |
|
Subtree | getPathsTo (const GeometryObject &el, const PathHints *pathHints=0) const override |
| Find paths to el.
|
|
void | getObjectsToVec (const Predicate &predicate, std::vector< shared_ptr< const GeometryObject > > &dest, const PathHints *path=0) const override |
| Append all objects from subtree with child (see getChild) of this in root, which fulfill predicate to vector dest .
|
|
std::size_t | getChildrenCount () const override |
| Get number of children of this .
|
|
shared_ptr< GeometryObject > | getChildNo (std::size_t child_no) const override |
| Get child_no-th child of this.
|
|
std::vector< shared_ptr< const GeometryObject > > | getLeafs (const PathHints *path=nullptr) const |
| Get all leafs in subtree with child (see getChild) of this object as root.
|
|
std::vector< shared_ptr< const GeometryObject > > | getLeafs (const PathHints &path) const |
| Get all leafs in subtree with child (see getChild) of this object as root.
|
|
std::vector< CoordsType > | getLeafsPositions (const PathHints *path=nullptr) const |
| Calculate and return a vector of positions of all leafs, optionally marked by path.
|
|
std::vector< CoordsType > | getLeafsPositions (const PathHints &path) const |
| Calculate and return a vector of positions of all leafs, optionally marked by path.
|
|
std::vector< CoordsType > | getObjectPositions (const GeometryObject &object, const PathHints *path=nullptr) const |
| Calculate and return a vector of positions of all instances of given object , optionally marked by path.
|
|
std::vector< CoordsType > | getObjectPositions (const GeometryObject &object, const PathHints &path) const |
| Calculate and return a vector of positions of all instances of given object , optionally marked by path.
|
|
std::vector< CoordsType > | getObjectPositions (const shared_ptr< const GeometryObject > &object, const PathHints *path=nullptr) const |
| Calculate and return a vector of positions of all instances of given object , optionally marked by path.
|
|
std::vector< CoordsType > | getObjectPositions (const shared_ptr< const GeometryObject > &object, const PathHints &path) const |
| Calculate and return a vector of positions of all instances of given object , optionally marked by path.
|
|
std::vector< typename Primitive< DIM >::Box > | getLeafsBoundingBoxes (const PathHints *path=nullptr) const |
| Calculate bounding boxes of all leafs, optionally marked by path.
|
|
std::vector< typename Primitive< DIM >::Box > | getLeafsBoundingBoxes (const PathHints &path) const |
| Calculate bounding boxes of all leafs, optionally marked by path.
|
|
std::vector< typename Primitive< DIM >::Box > | getObjectBoundingBoxes (const GeometryObject &object, const PathHints *path=nullptr) const |
| Calculate bounding boxes (relative to child of this) of all instances of given object , optionally marked by path.
|
|
std::vector< typename Primitive< DIM >::Box > | getObjectBoundingBoxes (const GeometryObject &object, const PathHints &path) const |
| Calculate bounding boxes (relative to child of this) of all instances of given object , optionally marked by path.
|
|
std::vector< typename Primitive< DIM >::Box > | getObjectBoundingBoxes (const shared_ptr< const GeometryObject > &object, const PathHints *path=nullptr) const |
| Calculate bounding boxes (relative to child of this) of all instances of given object , optionally marked by path.
|
|
std::vector< typename Primitive< DIM >::Box > | getObjectBoundingBoxes (const shared_ptr< const GeometryObject > &object, const PathHints &path) const |
| Calculate bounding boxes (relative to child of this) of all instances of given object , optionally marked by path.
|
|
std::vector< shared_ptr< const GeometryObject > > | getObjectsWithRole (const std::string &role) const |
| Get all objects with a specified role with this object as root.
|
|
GeometryObject::Subtree | getPathsAt (const CoordsType &point, bool all=false) const |
| Find all paths to objects which lies at given point .
|
|
shared_ptr< const GeometryObject > | getMatchingAt (const CoordsType &point, const Predicate &predicate, const PathHints *path=0) |
| Get object closest to the root (child of this), which contains specific point and fulfills the predicate.
|
|
shared_ptr< const GeometryObject > | getMatchingAt (const CoordsType &point, const Predicate &predicate, const PathHints &path) |
| Get object closest to the root (child of this), which contains specific point and fulfills the predicate.
|
|
bool | objectIncludes (const GeometryObject &object, const PathHints *path, const CoordsType &point) const |
| Check if specified geometry object contains a point point.
|
|
bool | objectIncludes (const GeometryObject &object, const PathHints &path, const CoordsType &point) const |
| Check if specified geometry object contains a point point.
|
|
bool | objectIncludes (const GeometryObject &object, const CoordsType &point) const |
| Check if specified geometry object contains a point point.
|
|
shared_ptr< const GeometryObject > | hasRoleAt (const std::string &role_name, const CoordsType &point, const plask::PathHints *path=0) const |
| Check if any object at given point , not hidden by another object, plays role with given name role_name (if so, returns non-nullptr).
|
|
shared_ptr< const GeometryObject > | hasRoleAt (const std::string &role_name, const CoordsType &point, const plask::PathHints &path) const |
| Check if any object at given point , not hidden by another object, plays role with given name role_name (if so, returns non-nullptr).
|
|
std::set< std::string > | getRolesAt (const CoordsType &point, const plask::PathHints *path=0) const |
| Get a sum of roles sets of all objects which lies on path from this to leaf at given point .
|
|
std::set< std::string > | getRolesAt (const CoordsType &point, const plask::PathHints &path) const |
| Get a sum of roles sets of all objects which lies on path from this to leaf at given point .
|
|
void | setPlanarEdges (const edge::Strategy &border_to_set) override |
| Set all planar edges or throw exception if this edges can't be set for this calculation space or direction.
|
|
void | setPlanarEdges (const edge::Strategy &border_to_set) |
| Set all planar edges or throw exception if this edges can't be set for this calculation space or direction.
|
|
void | setPlanarEdges (const edge::Strategy &border_to_set) |
| Set all planar edges or throw exception if this edges can't be set for this calculation space or direction.
|
|
virtual CoordsType | wrapEdges (CoordsType p) const=0 |
| Wrap point to canonical position respecting edge settings (mirror, extend and periodic)
|
|
void | writeXMLAttr (XMLWriter::Element &dest_xml_object, const AxisNames &axes) const override |
| Append XML attributes of this to dest_xml_object .
|
|
void | writeXMLAttr (XMLWriter::Element &dest_xml_object, const AxisNames &axes) const |
| Append XML attributes of this to dest_xml_object .
|
|
void | writeXMLAttr (XMLWriter::Element &dest_xml_object, const AxisNames &axes) const |
| Append XML attributes of this to dest_xml_object .
|
|
void | writeXMLAttr (XMLWriter::Element &dest_xml_object, const AxisNames &axes) const |
| Append XML attributes of this to dest_xml_object .
|
|
void | writeXMLAttr (XMLWriter::Element &dest_xml_object, const AxisNames &axes) const |
| Append XML attributes of this to dest_xml_object .
|
|
| Geometry (shared_ptr< Material > defaultMaterial=make_shared< materials::Air >()) |
| Calculation space constructor, set default material.
|
|
| Geometry (const Geometry &to_copy) |
| Initialize this to be the same as to_copy but doesn't have any changes observer.
|
|
Geometry & | operator= (const Geometry &to_copy) |
| Set this to be the same as to_copy but doesn't changed changes observer.
|
|
virtual | ~Geometry () |
| Inform observators that this is being deleted.
|
|
virtual void | setEdges (Direction direction, const edge::Strategy &border_to_set) |
| Set all edges in given direction or throw exception if this edges can't be set for this calculation space or direction.
|
|
void | setAllEdges (const edge::Strategy &border_to_set) |
| Set all edges (planar and up-bottom).
|
|
void | setEdges (const std::function< plask::optional< std::string >(const std::string &s)> &borderValuesGetter, const AxisNames &axesNames, const MaterialsDB &materialsDB=MaterialsDB::getDefault(), bool draft=false) |
| Set edges using string value which is gotten from borderValuesGetter .
|
|
virtual bool | isSymmetric (Direction direction) const |
| Check if structure in given direction is symmetric, i.e.
|
|
bool | isPeriodic (Direction direction) const |
| Check if structure in given direction is periodic, i.e.
|
|
bool | isExtended (Direction direction, bool higher) const |
| Check if structure extends in given direction.
|
|
Type | getType () const override |
| Check if geometry is: leaf, transform or container type object.
|
|
void | setMaxSteps (unsigned value) |
| Set max_steps.
|
|
void | setMinStepSize (double value) |
| Set min_step_size.
|
|
template<typename ClassT , typename methodT > |
boost::signals2::connection | changedConnectMethod (ClassT *obj, methodT method, boost::signals2::connect_position at=boost::signals2::at_back) |
| Connect a method to changed signal.
|
|
template<typename ClassT , typename methodT > |
void | changedDisconnectMethod (ClassT *obj, methodT method) |
| Disconnect a method from changed signal.
|
|
template<typename EventT = Event, typename... Args> |
void | fireChanged (Args &&... event_constructor_params_without_source) |
| Call changed with this as event source.
|
|
| GeometryObject (const GeometryObject &to_copy) |
| Initialize this to be the same as to_copy but doesn't have any changes observer.
|
|
GeometryObject & | operator= (const GeometryObject &to_copy) |
| Set this to be the same as to_copy but doesn't change changes observer.
|
|
| GeometryObject () |
|
| GeometryObject (unsigned max_steps, double min_step_size) |
|
virtual | ~GeometryObject () |
| Virtual destructor.
|
|
void | writeXML (XMLWriter::Element &parent_xml_object, WriteXMLCallback &write_cb) const |
| Write geometry tree branch rooted by this to XML.
|
|
void | writeXML (XMLWriter::Element &parent_xml_object) const |
| Write geometry tree branch rooted by this to XML.
|
|
template<int DIMS> |
shared_ptr< GeometryObjectD< DIMS > > | asD () |
| Cast this to GeometryObjectD<DIMS>.
|
|
template<int DIMS> |
shared_ptr< const GeometryObjectD< DIMS > > | asD () const |
| Cast this to GeometryObjectD<DIMS> (const version).
|
|
shared_ptr< Geometry > | asGeometry () |
| Cast this to Geometry.
|
|
shared_ptr< const Geometry > | asGeometry () const |
| Cast this to Geometry.
|
|
bool | isLeaf () const |
|
bool | isTransform () const |
|
bool | isSpaceChanger () const |
|
bool | isContainer () const |
|
bool | isGeometry () const |
|
virtual void | addPointsAlongToSet (std::set< double > &points, Primitive< 3 >::Direction PLASK_UNUSED(direction), unsigned PLASK_UNUSED(max_steps), double PLASK_UNUSED(min_step_size)) const =0 |
| Add characteristic points information along specified axis to set.
|
|
std::set< double > | getPointsAlong (Primitive< 3 >::Direction direction, unsigned max_steps=PLASK_GEOMETRY_MAX_STEPS, double min_step_size=PLASK_GEOMETRY_MIN_STEP_SIZE) const |
| Get characteristic points information along specified axis.
|
|
bool | hasRole (std::string role_name) const |
| Check if this object belongs to class (has tag) with name role_name .
|
|
void | addRole (std::string role_name) |
| Add this to given class.
|
|
void | removeRole (std::string role_name) |
| Remove this from given class, do nothing if this is not in given class.
|
|
void | clearRoles () |
| Clear set of roles of this.
|
|
virtual void | validate () const |
| Check if object is ready for calculation.
|
|
bool | hasInSubtree (const GeometryObject &el, const PathHints *pathHints) const |
|
bool | hasInSubtree (shared_ptr< const GeometryObject > el, const PathHints *pathHints) const |
|
void | getObjectsToVec (const Predicate &predicate, std::vector< shared_ptr< const GeometryObject > > &dest, const PathHints &path) const |
| Append all objects from subtree with this in root, which fulfill predicate to vector dest .
|
|
std::vector< shared_ptr< const GeometryObject > > | getObjects (const Predicate &predicate, const PathHints *path=0) const |
| Get vector of all objects from subtree with this in root, which fulfill predicate.
|
|
std::vector< shared_ptr< const GeometryObject > > | getObjects (const Predicate &predicate, const PathHints &path) const |
| Get vector of all objects from subtree with this in root, which fulfill predicate.
|
|
void | getLeafsToVec (std::vector< shared_ptr< const GeometryObject > > &dest, const PathHints *path=0) const |
| Append all leafs in subtree with this in root to vector dest .
|
|
void | getLeafsToVec (std::vector< shared_ptr< const GeometryObject > > &dest, const PathHints &path) const |
| Append all leafs in subtree with this in root to vector dest .
|
|
std::vector< shared_ptr< const GeometryObject > > | getLeafs (const PathHints *path=0) const |
| Get all leafs in subtree with this object as root.
|
|
std::vector< shared_ptr< const GeometryObject > > | getLeafs (const PathHints &path) const |
| Get all leafs in subtree with this object as root.
|
|
void | getObjectsWithRoleToVec (const std::string &role, std::vector< shared_ptr< const GeometryObject > > &dest) const |
| Append all objects with a specified role in subtree with this in root to vector dest .
|
|
std::vector< shared_ptr< const GeometryObject > > | getObjectsWithRole (const std::string &role) const |
| Get all objects with a specified role in subtree with this object as root.
|
|
virtual std::size_t | getRealChildrenCount () const |
| Get number of real (physically stored) children in geometry graph.
|
|
virtual shared_ptr< GeometryObject > | getRealChildNo (std::size_t child_no) const |
| Get real (physically stored) child with given index.
|
|
void | removeAt (std::size_t index) |
| Remove child at given index .
|
|
void | removeRangeUnsafe (std::size_t index_begin, std::size_t index_end) |
|
bool | removeRange (std::size_t index_begin, std::size_t index_end) |
| Remove all children in given range [index_begin, index_end).
|
|
virtual void | forEachRealObjectInSubtree (std::function< bool(const GeometryObject &)> callback) const |
| Call a callback for each object in subtree with this in root.
|
|
FunctorIndexedIterator< ChildGetter > | begin () const |
|
FunctorIndexedIterator< ChildGetter > | end () const |
|
shared_ptr< GeometryObject > | deepCopy () |
| Get deep copy of this.
|
|
bool | canHasAsChild (const GeometryObject &potential_child) const |
|
bool | canHasAsParent (const GeometryObject &potential_parent) const |
|
void | ensureCanHasAsParent (const GeometryObject &potential_parent) const |
| Throw CyclicReferenceException if potential_parent is in subtree with this in root.
|
|
void | ensureCanHaveAsChild (const GeometryObject &potential_child) const |
| Throw CyclicReferenceException if potential_child has this in subtree.
|
|