FemViewer::ModelCtrl Class Reference
#include <ModelControler.h>
List of all members.
Public Types |
enum | eCommnad {
INIT = 0,
CLEAR = 1,
UPDATE = 2,
INIT_MESH = (UPDATE << 1),
INIT_FIELD = (UPDATE << 2),
INIT_ACCEL = (UPDATE << 3),
INIT_GL = (UPDATE << 4),
INIT_LEGEND = (UPDATE << 5),
INIT_SOL = (UPDATE << 6),
INIT_PLANE = (UPDATE << 7),
INIT_DISPLAY = (UPDATE << 8)
} |
enum | eItem {
enumAll = 0,
enumMesh = 0,
enumField,
enumLegend,
enumAccelerator,
enumGL,
enumGLParams,
enumCutPlane,
enumSolution,
enumDrawMethod,
enumNumItems
} |
enum | notify_status_t {
MESH_STATE = 0,
FIELD_STATE,
COLORMAP_STATE,
CUT_PLANE_STATE,
ACCELERATOR_STATE,
GLPARAMS_STATE,
DISPLAY_STATE,
ALL_ITEM_STATES,
NUM_STATES = ALL_ITEM_STATES
} |
Public Member Functions |
| ~ModelCtrl () |
bool | Do (const int oper=INIT, const char *path_=NULL) |
void | Reset (bool eraseall=false) |
void | Clear () |
void | Destroy () |
void | Draw (RenderParams &pParams) |
void | SetMeshChange () |
void | SetFieldChange () |
void | SetLegendChange () |
void | SetCutPlaneChange () |
void | SetCutPlaneDisplay () |
void | SetRenderParamsChange () |
void | NotifyChange (notify_status_t item) |
std::shared_ptr< Legend > | LoadColorMap (const char *path) |
int | InitData () |
int | InitData2 () |
SolutionData & | GetCurrentSolution () |
Field * | GetCurrentField () |
Mesh * | GetCurrentMesh () |
std::vector< CutPlane > & | GetCutPlanes () |
const std::vector< CutPlane > & | GetCutPlanes () const |
RContext * | RenderingContext () |
const RContext * | RenderingContext () const |
int | GetMeshModuleType () const |
int | GetApproximationType () const |
const BBox3D & | Boundary () const |
Public Attributes |
std::vector< prism_info
< mfvFloat_t > > | elData |
std::vector< coeffs_info
< mfvFloat_t > > | coeffsData |
grid_t | gridData |
int * | C_ptr |
int * | L_ptr |
Protected Member Functions |
| ModelCtrl () |
Protected Attributes |
GraphicsSettings * | m_psettings |
SolutionData | CurrentSolution |
Mesh | m_mesh |
Field | m_field |
RContext * | m_pRC |
bool | m_meshChange |
bool | m_fieldChange |
bool | m_legendChange |
bool | m_solutionChange |
bool | m_accelChange |
bool | m_glChange |
bool | m_glParamsChange |
bool | m_cutPlaneChange |
bool | m_displayChange |
std::vector< CutPlane > | m_currPlanes |
host_info_id | _hosts |
RenderManager< GLCore > * | m_pgm |
std::map< std::string, Legend > | m_colorMaps |
std::bitset< NUM_STATES > | m_status |
Friends |
ModelCtrl & | ModelCtrlInst (void) |
Member Enumeration Documentation
- Enumerator:
INIT |
|
CLEAR |
|
UPDATE |
|
INIT_MESH |
|
INIT_FIELD |
|
INIT_ACCEL |
|
INIT_GL |
|
INIT_LEGEND |
|
INIT_SOL |
|
INIT_PLANE |
|
INIT_DISPLAY |
|
- Enumerator:
enumAll |
|
enumMesh |
|
enumField |
|
enumLegend |
|
enumAccelerator |
|
enumGL |
|
enumGLParams |
|
enumCutPlane |
|
enumSolution |
|
enumDrawMethod |
|
enumNumItems |
|
- Enumerator:
MESH_STATE |
|
FIELD_STATE |
|
COLORMAP_STATE |
|
CUT_PLANE_STATE |
|
ACCELERATOR_STATE |
|
GLPARAMS_STATE |
|
DISPLAY_STATE |
|
ALL_ITEM_STATES |
|
NUM_STATES |
|
Constructor & Destructor Documentation
FemViewer::ModelCtrl::~ModelCtrl |
( |
|
) |
|
FemViewer::ModelCtrl::ModelCtrl |
( |
|
) |
[protected] |
Member Function Documentation
const BBox3D& FemViewer::ModelCtrl::Boundary |
( |
|
) |
const [inline] |
void FemViewer::ModelCtrl::Clear |
( |
|
) |
|
void FemViewer::ModelCtrl::Destroy |
( |
void |
|
) |
|
bool FemViewer::ModelCtrl::Do |
( |
const int |
oper = INIT , |
|
|
const char * |
path_ = NULL | |
|
) |
| | |
int FemViewer::ModelCtrl::GetApproximationType |
( |
|
) |
const [inline] |
Field* FemViewer::ModelCtrl::GetCurrentField |
( |
|
) |
[inline] |
Mesh* FemViewer::ModelCtrl::GetCurrentMesh |
( |
|
) |
[inline] |
SolutionData& FemViewer::ModelCtrl::GetCurrentSolution |
( |
|
) |
[inline] |
const std::vector<CutPlane>& FemViewer::ModelCtrl::GetCutPlanes |
( |
|
) |
const [inline] |
std::vector<CutPlane>& FemViewer::ModelCtrl::GetCutPlanes |
( |
|
) |
[inline] |
int FemViewer::ModelCtrl::GetMeshModuleType |
( |
|
) |
const [inline] |
int FemViewer::ModelCtrl::InitData |
( |
|
) |
|
TO DO: conversion between double and float
int FemViewer::ModelCtrl::InitData2 |
( |
|
) |
|
ModelCtrl* mctrl_ptr = &ModelCtrlInst();
TO DO: conversion between double and float
std::shared_ptr< Legend > FemViewer::ModelCtrl::LoadColorMap |
( |
const char * |
path |
) |
|
const RContext* FemViewer::ModelCtrl::RenderingContext |
( |
|
) |
const [inline] |
RContext* FemViewer::ModelCtrl::RenderingContext |
( |
|
) |
[inline] |
void FemViewer::ModelCtrl::Reset |
( |
bool |
eraseall = false |
) |
|
void FemViewer::ModelCtrl::SetCutPlaneChange |
( |
|
) |
[inline] |
void FemViewer::ModelCtrl::SetCutPlaneDisplay |
( |
|
) |
[inline] |
void FemViewer::ModelCtrl::SetFieldChange |
( |
|
) |
[inline] |
void FemViewer::ModelCtrl::SetLegendChange |
( |
|
) |
[inline] |
void FemViewer::ModelCtrl::SetMeshChange |
( |
|
) |
[inline] |
void FemViewer::ModelCtrl::SetRenderParamsChange |
( |
|
) |
[inline] |
Friends And Related Function Documentation
Member Data Documentation
The documentation for this class was generated from the following files: