#include <nanglestructure.h>
Inheritance diagram for regina::NAngleStructure:
Public Member Functions | |
NAngleStructure (NTriangulation *triang, NAngleStructureVector *newVector) | |
Creates a new angle structure on the given triangulation with the given coordinate vector. | |
virtual | ~NAngleStructure () |
Destroys this angle structure. | |
NAngleStructure * | clone () const |
Creates a newly allocated clone of this angle structure. | |
NRational | getAngle (unsigned long tetIndex, int edgePair) const |
Returns the requested angle in this angle structure. | |
NTriangulation * | getTriangulation () const |
Returns the triangulation on which this angle structure lies. | |
bool | isStrict () const |
Determines whether this is a strict angle structure. | |
bool | isTaut () const |
Determines whether this is a taut structure. | |
void | writeTextShort (std::ostream &out) const |
Writes this object in short text format to the given output stream. | |
void | writeXMLData (std::ostream &out) const |
Writes a chunk of XML containing this angle structure and all of its properties. | |
void | writeToFile (NFile &out) const |
Writes this angle structure and all of its properties to the given old-style binary file. | |
Static Public Member Functions | |
NAngleStructure * | readFromFile (NFile &in, NTriangulation *triangulation) |
Reads an angle structure and all its properties from the given old-style binary file. | |
Protected Member Functions | |
virtual void | readIndividualProperty (NFile &infile, unsigned propType) |
Reads an individual property from an old-style binary file. | |
void | calculateType () const |
Calculates the structure type (strict or taut) and stores it as a property. |
Once the underlying triangulation changes, this angle structure is no longer valid.
|
Creates a new angle structure on the given triangulation with the given coordinate vector.
|
|
Destroys this angle structure. The underlying vector of angles will also be deallocated. |
|
Calculates the structure type (strict or taut) and stores it as a property.
|
|
Creates a newly allocated clone of this angle structure.
|
|
Returns the requested angle in this angle structure. The angle returned will be scaled down; the actual angle is the returned value multiplied by pi.
|
|
Returns the triangulation on which this angle structure lies.
|
|
Determines whether this is a strict angle structure. A strict angle structure has all angles strictly between (not including) 0 and pi.
|
|
Determines whether this is a taut structure. A taut structure contains only angles 0 and pi.
|
|
Reads an angle structure and all its properties from the given old-style binary file. This routine reads precisely what writeToFile() writes.
|
|
Reads an individual property from an old-style binary file. The property type and bookmarking details should not read; merely the contents of the property that are written to file between NFile::writePropertyHeader() and NFile::writePropertyFooter(). See the NFile::writePropertyHeader() notes for details. The property type of the property to be read will be passed in propType. If the property type is unrecognised, this routine should simply do nothing and return. If the property type is recognised, this routine should read the property and process it accordingly (e.g., store it in whatever data object is currently being read).
Implements regina::NFilePropertyReader. |
|
Writes this object in short text format to the given output stream. The output should fit on a single line and no newline should be written.
Implements regina::ShareableObject. |
|
Writes this angle structure and all of its properties to the given old-style binary file. This routine writes precisely what readFromFile() reads.
|
|
Writes a chunk of XML containing this angle structure and all of its properties. This routine will be called from within NAngleStructureList::writeXMLPacketData().
|