#include <vuSampleRay.h>
Inheritance diagram for ns_vu1112113::vuSampleRay:
Public Member Functions | |
vuSampleRay () | |
Default constructor. | |
vuSampleRay (const vuSampleRay &r) | |
Copy constructor. | |
vuSampleRay (const vuRay &r) | |
Copy constructor for simple vuRay. | |
~vuSampleRay () | |
Destructor. | |
void | SamplingDistance (float sd) |
modifies length of direction vector to sd | |
float | SamplingDistance () const |
returns current sampling distance | |
vuSampleRay & | operator= (vuSampleRay &rhs) |
Assignment operator. | |
bool | advanceRay () |
float | getSamplePoint (DatPnt &dat, bool getnormal=true) const |
get sampled point for current position | |
bool | attachToGrid (const DatGrid &grid) |
Protected Attributes | |
float | m_SmpDist |
sampling distance (length of direction vector) | |
const DatGrid * | m_Grid |
grid ray is within | |
int | grid_index |
int | gridPos [3] |
location in grid | |
int | axis [3] |
[0] is ID of predominant axis, [1] and [2] are | |
int | step [3] |
forward/backward steps (1 or -1) | |
float | incr [2][2] |
increments for chosen direction | |
float | dist [3] |
not used | |
int | maxSmp |
int | numSmp |
total and current number of samples | |
int | m_Side |
int | m_InSide |
side IDs for leaving and entering the data cube | |
int | steps |
DatPnt * | cell [8] |
float | w [8] |
int | p [3] |
float | t [3] |
Friends | |
class | DatGrid |
Derived from the vuRay class and adds a feature to change position by a certain sampling step, keeping track of current position in Grid. Because of its orientation to specific grid type probably not a general tool.
Definition at line 16 of file Raycast/vuSampleRay.h.
|
Default constructor.
Definition at line 18 of file Raycast/vuSampleRay.cpp. |
|
Copy constructor.
Definition at line 26 of file Raycast/vuSampleRay.cpp. |
|
Copy constructor for simple vuRay.
Definition at line 34 of file Raycast/vuSampleRay.cpp. |
|
Destructor.
Definition at line 41 of file Raycast/vuSampleRay.cpp. |
|
Definition at line 68 of file Raycast/vuSampleRay.cpp. References cell, ns_vu1112113::DatGrid::layXY, m_Grid, ns_vu1112113::DatGrid::maxX, ns_vu1112113::DatGrid::maxY, ns_vu1112113::DatGrid::maxZ, p, steps, t, ns_vu1112113::DatGrid::vol, and w. Referenced by vu1112113::Cast(). |
|
Definition at line 138 of file Raycast/vuSampleRay.cpp. References ns_vu1112113::DatGrid::clipRay(), vuRay::m_Direction, m_Grid, vuRay::m_Position, steps, and t. Referenced by vu1112113::Cast(). |
Here is the call graph for this function:
|
get sampled point for current position
Definition at line 113 of file Raycast/vuSampleRay.cpp. References byte, cell, ns_vu1112113::DatPnt::data, ns_vu1112113::DatPnt::illum, ns_vu1112113::DatPnt::len, ns_vu1112113::DatPnt::normalVec(), ns_vu1112113::DatPnt::reset(), ns_vu1112113::DatPnt::setNormalVec(), and w. Referenced by vu1112113::Cast(). |
Here is the call graph for this function:
|
Assignment operator.
Definition at line 46 of file Raycast/vuSampleRay.cpp. References m_Grid, vuRay::operator=(), and steps. |
Here is the call graph for this function:
|
returns current sampling distance
Definition at line 55 of file Raycast/vuSampleRay.cpp. |
|
modifies length of direction vector to sd
Definition at line 60 of file Raycast/vuSampleRay.cpp. References m_Grid, m_SmpDist, vuVector::norm(), and steps. Referenced by vu1112113::Cast(). |
Here is the call graph for this function:
|
Definition at line 18 of file Raycast/vuSampleRay.h. |
|
[0] is ID of predominant axis, [1] and [2] are
Definition at line 47 of file Raycast/vuSampleRay.h. |
|
Definition at line 57 of file Raycast/vuSampleRay.h. Referenced by advanceRay(), and getSamplePoint(). |
|
not used
Definition at line 50 of file Raycast/vuSampleRay.h. |
|
Definition at line 45 of file Raycast/vuSampleRay.h. |
|
location in grid
Definition at line 46 of file Raycast/vuSampleRay.h. |
|
increments for chosen direction
Definition at line 49 of file Raycast/vuSampleRay.h. |
|
grid ray is within
Definition at line 44 of file Raycast/vuSampleRay.h. Referenced by advanceRay(), attachToGrid(), operator=(), SamplingDistance(), and vuSampleRay(). |
|
side IDs for leaving and entering the data cube
Definition at line 53 of file Raycast/vuSampleRay.h. |
|
Definition at line 53 of file Raycast/vuSampleRay.h. |
|
sampling distance (length of direction vector)
Definition at line 42 of file Raycast/vuSampleRay.h. Referenced by SamplingDistance(), and vuSampleRay(). |
|
Definition at line 51 of file Raycast/vuSampleRay.h. |
|
total and current number of samples
Definition at line 51 of file Raycast/vuSampleRay.h. |
|
Definition at line 59 of file Raycast/vuSampleRay.h. Referenced by advanceRay(). |
|
forward/backward steps (1 or -1)
Definition at line 48 of file Raycast/vuSampleRay.h. |
|
Definition at line 55 of file Raycast/vuSampleRay.h. Referenced by advanceRay(), attachToGrid(), operator=(), SamplingDistance(), and vuSampleRay(). |
|
Definition at line 60 of file Raycast/vuSampleRay.h. Referenced by advanceRay(), and attachToGrid(). |
|
Definition at line 58 of file Raycast/vuSampleRay.h. Referenced by advanceRay(), and getSamplePoint(). |