The rl struct for handling each tree. More...
Public Member Functions | |
TreeRecord (ushort x, ushort y) | |
sets pixel to specified value, and all other members to zero | |
Public Attributes | |
ushort | px |
x-value of pixel | |
ushort | py |
y-value of pixel | |
Point | origin |
origin of the head ray of the tree, for file I/O | |
uint64_t | record_offset |
offset in file of ray records, for file reading | |
vector< RayRecord > | records |
vector of all the rays in the tree | |
uint | curr |
index to current ray, to which future rays will be added | |
uint | prev |
index to previous ray, for breadth-first mode | |
uint | depth |
maximum ray depth | |
bool | active |
whether the tree is active or not, for rl::WriteMode |
The rl struct for handling each tree.
rl::RayLogger uses TreeRecord to store data for each tree. This includes the set of rays, current ray, and previous ray for tree traversal, the origin and record offset for file I/O, and the pixel it was generated for.
rl::TreeRecord::TreeRecord | ( | ushort | x, |
ushort | y | ||
) |
sets pixel to specified value, and all other members to zero
whether the tree is active or not, for rl::WriteMode
uint rl::TreeRecord::curr |
index to current ray, to which future rays will be added
maximum ray depth
Referenced by rl::operator<<().
Point rl::TreeRecord::origin |
origin of the head ray of the tree, for file I/O
Referenced by rl::RayLogger::init(), and rl::operator<<().
uint rl::TreeRecord::prev |
index to previous ray, for breadth-first mode
x-value of pixel
Referenced by rl::operator<<().
y-value of pixel
Referenced by rl::operator<<().
uint64_t rl::TreeRecord::record_offset |
offset in file of ray records, for file reading
Referenced by rl::RayLogger::init(), and rl::operator<<().
vector<RayRecord> rl::TreeRecord::records |
vector of all the rays in the tree