FemViewer::ModelCtrl Class Reference

#include <ModelControler.h>

Collaboration diagram for FemViewer::ModelCtrl:
Collaboration graph
[legend]

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< LegendLoadColorMap (const char *path)
int InitData ()
int InitData2 ()
SolutionDataGetCurrentSolution ()
FieldGetCurrentField ()
MeshGetCurrentMesh ()
std::vector< CutPlane > & GetCutPlanes ()
const std::vector< CutPlane > & GetCutPlanes () const
RContextRenderingContext ()
const RContextRenderingContext () const
int GetMeshModuleType () const
int GetApproximationType () const
const BBox3DBoundary () 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

GraphicsSettingsm_psettings
SolutionData CurrentSolution
Mesh m_mesh
Field m_field
RContextm_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< CutPlanem_currPlanes
host_info_id _hosts
RenderManager< GLCore > * m_pgm
std::map< std::string, Legendm_colorMaps
std::bitset< NUM_STATES > m_status

Friends

ModelCtrlModelCtrlInst (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 (  ) 

Here is the call graph for this function:

FemViewer::ModelCtrl::ModelCtrl (  )  [protected]

Here is the call graph for this function:


Member Function Documentation

const BBox3D& FemViewer::ModelCtrl::Boundary (  )  const [inline]

Here is the call graph for this function:

void FemViewer::ModelCtrl::Clear (  ) 

Here is the call graph for this function:

Here is the caller graph for this function:

void FemViewer::ModelCtrl::Destroy ( void   ) 
bool FemViewer::ModelCtrl::Do ( const int  oper = INIT,
const char *  path_ = NULL 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void FemViewer::ModelCtrl::Draw ( RenderParams pParams  ) 
int FemViewer::ModelCtrl::GetApproximationType (  )  const [inline]

Here is the caller graph for this function:

Field* FemViewer::ModelCtrl::GetCurrentField (  )  [inline]
Mesh* FemViewer::ModelCtrl::GetCurrentMesh (  )  [inline]

Here is the caller graph for this function:

SolutionData& FemViewer::ModelCtrl::GetCurrentSolution (  )  [inline]
const std::vector<CutPlane>& FemViewer::ModelCtrl::GetCutPlanes (  )  const [inline]
std::vector<CutPlane>& FemViewer::ModelCtrl::GetCutPlanes (  )  [inline]

Here is the caller graph for this function:

int FemViewer::ModelCtrl::GetMeshModuleType (  )  const [inline]

Here is the caller graph for this function:

int FemViewer::ModelCtrl::InitData (  ) 

TO DO: conversion between double and float

Here is the call graph for this function:

Here is the caller graph for this function:

int FemViewer::ModelCtrl::InitData2 (  ) 

ModelCtrl* mctrl_ptr = &ModelCtrlInst();

TO DO: conversion between double and float

Here is the call graph for this function:

std::shared_ptr< Legend > FemViewer::ModelCtrl::LoadColorMap ( const char *  path  ) 
void FemViewer::ModelCtrl::NotifyChange ( notify_status_t  item  ) 
const RContext* FemViewer::ModelCtrl::RenderingContext (  )  const [inline]
RContext* FemViewer::ModelCtrl::RenderingContext (  )  [inline]

Here is the caller graph for this function:

void FemViewer::ModelCtrl::Reset ( bool  eraseall = false  ) 

Here is the call graph for this function:

Here is the caller graph for this function:

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

ModelCtrl& ModelCtrlInst ( void   )  [friend]

Member Data Documentation

std::map<std::string,Legend> FemViewer::ModelCtrl::m_colorMaps [protected]
std::vector<CutPlane> FemViewer::ModelCtrl::m_currPlanes [protected]
std::bitset<NUM_STATES> FemViewer::ModelCtrl::m_status [protected]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 3 Jun 2020 for ModFEM by  doxygen 1.6.1