Inheritance diagram for Doomwad::Node:

Definition at line 70 of file nodes.hpp.
Public Member Functions | |
| virtual size_t | getLength (void) const throw () |
| Get the length of an element. | |
| Node (int16=0, int16=0, int16=0, int16=0, int16=0, int16=0, int16=0, int16=0, int16=0, int16=0, int16=0, int16=0, uint16=0, uint16=0) throw () | |
| Node constructor. | |
| virtual bool | read (const Lump &lump, Lump::size_type i) throw () |
| Read this element from a Lump. | |
| virtual std::string | toString (void) const throw () |
| Convert this element to a string. | |
| virtual bool | write (Lump &lump, Lump::size_type i) const throw () |
| Write this element into a Lump. | |
| virtual | ~Node (void) throw () |
| Destructor. | |
Public Attributes | |
| int16 | dx |
| End x, offset from begin X. | |
| int16 | dy |
| End y, offset from begin y. | |
| uint16 | l_child |
| Left child. | |
| int16 | l_x_lower |
| Lower X bound of left bounding box. | |
| int16 | l_x_upper |
| Upper X bound of left bounding box. | |
| int16 | l_y_lower |
| Lower Y bound of left bounding box. | |
| int16 | l_y_upper |
| Upper Y bound of left bounding box. | |
| uint16 | r_child |
| Right child. | |
| int16 | r_x_lower |
| Lower X bound of right bounding box. | |
| int16 | r_x_upper |
| Upper X bound of right bounding box. | |
| int16 | r_y_lower |
| Lower Y bound of right bounding box. | |
| int16 | r_y_upper |
| Upper Y bound of right bounding box. | |
| int16 | x |
| X coordinate. | |
| int16 | y |
| Y coordinate. | |
Static Public Attributes | |
| static const size_t | LENGTH = 0x0000001C |
| Length of a single record. | |
| static const int16 | SUBSECTOR_MASK = 0x80000 |
| Subsector mask. | |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Node constructor. Constructs a Node object.
|
|
|
Get the length of an element. Each element record type has a length. Some are fixed, in which case this function returns that length. Some records are variable-length, in which case this function returns zero.
Implements Doomwad::WadEntryElement. Definition at line 86 of file nodes.cpp. References LENGTH. |
|
||||||||||||
|
Read this element from a Lump. Read one element from a Lump at the specified index.
Implements Doomwad::WadEntryElement. Definition at line 120 of file nodes.cpp. Referenced by Doomwad::Nodes::setFromLump(). |
|
|
Convert this element to a string. The format of the string will vary from class to class, but every subclass must be able to format itself as a string. IMPORTANT: this string representation is not guaranteed to preserve all data. Reading back in is not supported. This function's goal is to make the object's state user-readable, not machine-readable.
Implements Doomwad::WadEntryElement. Definition at line 149 of file nodes.cpp. References dx, dy, l_child, l_x_lower, l_x_upper, l_y_lower, l_y_upper, r_child, r_x_lower, r_x_upper, r_y_lower, r_y_upper, x, and y. |
|
||||||||||||
|
Write this element into a Lump. Write one element into a Lump at the specified index.
Implements Doomwad::WadEntryElement. |
1.4.0