Regina Calculation Engine
|
Represents an angle structure on a triangulation. More...
#include <angle/anglestructure.h>
Public Member Functions | |
AngleStructure (const Triangulation< 3 > *triang, AngleStructureVector *newVector) | |
Creates a new angle structure on the given triangulation with the given coordinate vector. More... | |
~AngleStructure () | |
Destroys this angle structure. More... | |
AngleStructure * | clone () const |
Creates a newly allocated clone of this angle structure. More... | |
Rational | angle (size_t tetIndex, int edgePair) const |
Returns the requested angle in this angle structure. More... | |
const Triangulation< 3 > * | triangulation () const |
Returns the triangulation on which this angle structure lies. More... | |
bool | isStrict () const |
Determines whether this is a strict angle structure. More... | |
bool | isTaut () const |
Determines whether this is a taut angle structure. More... | |
bool | isVeering () const |
Determines whether this is a veering structure. More... | |
const AngleStructureVector * | rawVector () const |
Gives read-only access to the raw vector that sits beneath this angle structure. More... | |
void | writeTextShort (std::ostream &out) const |
Writes a short text representation of this object to the given output stream. More... | |
void | writeXMLData (std::ostream &out) const |
Writes a chunk of XML containing this angle structure and all of its properties. More... | |
void | writeTextLong (std::ostream &out) const |
A default implementation for detailed output. More... | |
std::string | str () const |
Returns a short text representation of this object. More... | |
std::string | utf8 () const |
Returns a short text representation of this object using unicode characters. More... | |
std::string | detail () const |
Returns a detailed text representation of this object. More... | |
Protected Member Functions | |
void | calculateType () const |
Calculates the structure type (strict or taut) and stores it as a property. More... | |
Friends | |
class | regina::XMLAngleStructureReader |
Represents an angle structure on a triangulation.
Once the underlying triangulation changes, this angle structure is no longer valid.
|
inherited |
Returns a detailed text representation of this object.
This text may span many lines, and should provide the user with all the information they could want. It should be human-readable, should not contain extremely long lines (which cause problems for users reading the output in a terminal), and should end with a final newline. There are no restrictions on the underlying character set.
|
inherited |
Returns a short text representation of this object.
This text should be human-readable, should fit on a single line, and should not end with a newline. Where possible, it should use plain ASCII characters.
__str__()
.
|
inherited |
Returns a short text representation of this object using unicode characters.
Like str(), this text should be human-readable, should fit on a single line, and should not end with a newline. In addition, it may use unicode characters to make the output more pleasant to read. This string will be encoded in UTF-8.
|
inlineinherited |
A default implementation for detailed output.
This routine simply calls T::writeTextShort() and appends a final newline.
out | the output stream to which to write. |