concepts::Quad Class Reference
A quadrilateral in the topology. More...
|const Attribute &||attrib () const|
|Returns the attribute of the connector. More...|
|virtual const Quad *||child (uint i) const|
|virtual Quad *||child (uint i, bool mode=0)|
|Returns a child. More...|
|Quad *||clone (Edge &edg0, Edge &edg1, Edge &edg2, Edge &edg3) const|
|Returns the pointer of a new Quad with the same attribute, the same key and the same rho but NO children and sibling. More...|
|Edge *||edge (uint i) const|
|Returns a 1D component: edge. More...|
|const QuadSubdivision *||getStrategy () const|
|Returns the subdivision strategy of this quad. More...|
|const Key &||key () const|
|Returns the key of the connector. More...|
|int||numEdges () const|
|int||numVertices () const|
|int||operator== (const Connector &cntr) const|
|Comparison operator. More...|
|Quad (const Quad &quad, uint i)|
|Creating of intermediate cells through coalescing of two of the four childs (only for subdivision in four quadrilaterials) More...|
|Quad (Edge &edg0, Edge &edg1, Edge &edg2, Edge &edg3, const Attribute attrib=Attribute())|
|bool||regular () const|
|int||related (const Connector &conn) const|
|Checks if this connector is related to |
|Z2||rho (int i) const|
|Returns the orientation of an edge. More...|
|void||setAttrib (uint attrb)|
|void||setStrategy (const QuadSubdivision *strategy=0) throw (StrategyChange)|
|Sets the subdivision strategy of this quad. More...|
|Vertex *||vertex (uint i) const|
|Returns a 0D component: vertex A 2D element consists of 1D and 0D elements, the vertices can be queried here. More...|
|Scan< Quad > *||children_ () const|
|Scanner over the children. More...|
|void||edgeAssertion_ () const|
|Assert, that the vertices of the four edges match properly. More...|
|virtual std::ostream &||info (std::ostream &os) const|
|Returns information in an output stream. More...|
|Quad (Edge &edg0, Edge &edg1, Edge &edg2, Edge &edg3, const Attribute attrib, const Key &key, const Z2 rho)|
|Constructor used by clone() More...|
|concepts::Joiner< Quad *, 1 > *||chld_|
|List of Pointers to the children. More...|
|Edge *||edg_ |
|Array of the edges. More...|
|Unique key of the connector. More...|
|Regular Cell, deleting of children possible. More...|
|Array of the orientation flags for the edges. More...|
|const QuadSubdivision *||subdivStrategy_|
|Subdivision strategy for the quadrilateral. More...|
|Counter for the connectors. More...|
|static std::map< Key, Z2 >||rhoTriv_|
|orientation of trivial edges (with idential vertices) More...|
A quadrilateral in the topology.
Implements the abstract methods from the parent classes to query the children, the vertices and the edges of the quadrilateral.
Every edge can have two different orientations in the quadrilateral, this orientation is stored in the array rho.
Constructor & Destructor Documentation
|const Attribute||attrib =
Creates a quadrilateral out of four edges. The edges must form a quadrilateral: the 1st and the 2nd edge, the 2nd and the 3rd edge, the 3rd and the 4th edge and the 4th and the 1st edge must have a common vertex. The edges can have an arbitrary orientation. The orientation is detected and stored in rho_.
edg0 1st edge. edg1 2nd edge. edg2 3rd edge. edg3 4th edge. attrib Attribute of the edge
|concepts::Quad::Quad||(||const Quad &||quad,|
Creating of intermediate cells through coalescing of two of the four childs (only for subdivision in four quadrilaterials)
New cell is not regular, children are not deleted in its destructor
Constructor used by clone()
Member Function Documentation
Returns a child.
If children are created, four new children are created (with the same attributes as this one). All edges of the quadrilateral are refined and four new edges introduced.
i Index of the child to be returned. mode mode = 1: No children are created
mode = 0: If no childs exist, four new children are created. setStrategy() is called before creating the children.
Assert, that the vertices of the four edges match properly.
Returns information in an output stream.
Reimplemented from concepts::Connector.
Checks if this connector is related to
It is being checked if one of the two is an ancestor of the other.
conn Other connector
- An integer i.
i=0 if there is no relationship or the connectors are identical
connis an ancestor of this connector
connis a descendant of this connector
|i| gives the number of generations between the connectors
Sets the subdivision strategy of this quad.
If the parameter is set to 0 (or if the method is called without parameter) the strategy is set to the default (if not already set). The default subdivision strategy is subdivision into 4 children.
strategy Pointer to an instance of a subdivision strategy.
StrategyChange if the change is not allowed (the change is not allowed if there are children present)
Friends And Related Function Documentation
Member Data Documentation
The documentation for this class was generated from the following file: