#include <View.H>
Public Methods | |
| View () | |
| All constructed View will register at static View::vector<View*>. | |
| ~View () | |
| All deconstructed View will de-register from static View::vector<View*>. | |
| int | GetViewID () const |
| Get index of this View in the static View::vector<View*>. | |
| void | SetInteractive () |
| void | Erase_glModel (glModel *gl_m) |
| void | Add_glModel (glModel *gl_m) |
| void | ReadModel (const string &filename) |
| add new glModel, or read new model into the selected glModel. | |
| void | Render () |
| dVector3D | GetOrthographicVisualRay () const |
| const GLViewPort & | GetGLViewPort () const |
| double | ScreenX2WorldX (int x) |
| recover screen x to world x, works only for orthographic projections. | |
| double | ScreenY2WorldY (int y) |
| recover screen y to world y, works only for orthographic projections. | |
| double | ScreenDX2WorldDX (int dx) |
| recover screen dx to world dx, works only for orthographic projections. | |
| double | ScreenDY2WorldDY (int dy) |
| recover screen dy to world dy, works only for orthographic projections. | |
| UI & | GetUI () |
Static Public Methods | |
| View * | GetViewFromScreenPosition (int, int) |
| View * | GetInteractiveView () |
| Use non-static SetInteractive() to set. | |
| RGBA & | BackGroundColor () |
| GLenum & | RenderMode () |
| void | RenderAll () |
| void | View::display () |
| void | Reshape () |
| bool | IsFullScreen () |
| UI & | GetInteractiveUI () |
Friends | |
| ostream & | operator<< (ostream &os, const View &v) |
| ostream & | operator<< (ostream &os, const View *v) |
Each View shows a separate viewport on the screen.
|
|
All constructed View will register at static View::vector<View*>.
|
|
|
All deconstructed View will de-register from static View::vector<View*>.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Use non-static SetInteractive() to set.
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
Get index of this View in the static View::vector<View*>.
|
|
|
|
|
|
add new glModel, or read new model into the selected glModel.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
recover screen dx to world dx, works only for orthographic projections.
|
|
|
recover screen dy to world dy, works only for orthographic projections.
|
|
|
recover screen x to world x, works only for orthographic projections.
|
|
|
recover screen y to world y, works only for orthographic projections.
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
1.2.18