#include <HAnalysisView.h>
Public Member Functions | |
HAnalysisView (HBaseModel *model, const char *alias=0, const char *driver_type=0, const char *instance_name=0, void *window_handle=0, void *colormap=0, void *clip_override=0) | |
~HAnalysisView () | |
void | Init () |
Initializes the HOOPS/MVO view. More... | |
void | MapData (HC_KEY const key) |
bool | MapSelectionSet () |
void | QuadInterpolateData (HC_KEY const key) |
bool | QuadInterpolateSelectionSet () |
bool | AnimateSelectionSet () |
void | SetVisibilityEdges (bool on_off) |
![]() | |
virtual void | AdjustAxisWindow (int axis_window_pixels_in=-1, HIntRectangle *rect_in=0) |
virtual void | Animate (int animation_steps=30, HAnimateMode animate_flags=HAnimateScene, int MaxRotation=360) |
void | BeginShellSelection () |
virtual void | CameraPositionChanged (bool emit_message=false, bool smooth_camera_transition=false) |
void | cleanupSimpList () |
virtual void | ClearGeometryChanged () |
void | ClearUpdateRequest () |
virtual bool | ComputeReasonableTarget (HPoint &new_tar, HPoint const &mouse_win, HPoint const &tar_orig) |
virtual void | DeleteByKeyFromMessage (const char *in_data, unsigned int data_length) |
virtual void | DeleteSelectionList (bool emit_message=false) |
virtual void | DeleteSelectionListFromMessage () |
virtual void | DeSelectAllFromMessage () |
virtual void | DoDynamicHighlighting (HPoint mouse_pos) |
virtual void | EmitDeleteByKeyMessage (HC_KEY key) |
virtual void | EmitDeleteSelectionListMessage () |
virtual void | EmitDeSelectAllMessage () |
virtual void | EmitFlushMessage () |
virtual void | EmitHSFData (const char *segment, const char *in_data, unsigned int data_length) |
virtual void | EmitSegment (HC_KEY key, bool emit_contents_only=false) |
virtual void | EmitSelectMessage (HC_KEY key, bool isSelect) |
virtual void | EmitSetModellingMatrixMessage (HC_KEY key) |
virtual void | EmitSetModellingMatrixMessage () |
bool | EmittingMessages () |
void | EnableTargetFrameRate (bool enable=true, int target=100, int threshold=10, int steps=5) |
void | EndShellSelection () |
void | ExhaustiveUpdate () |
virtual HFileInputResult | FileInput (const __wchar_t *FileName, HInputHandler *handler, HInputHandlerOptions *options=0) |
virtual HFileInputResult | FileInput (const char *FileName, HInputHandler *handler, HInputHandlerOptions *options=0) |
virtual HFileOutputResult | FileOutput (const __wchar_t *FileName, HOutputHandler *handler, HOutputHandlerOptions *options=0) |
virtual HFileOutputResult | FileOutput (const char *FileName, HOutputHandler *handler, HOutputHandlerOptions *options=0) |
void | FitItemByPath (HC_KEY key, int incl_count, HC_KEY *incl_path) |
void | FitSegment (HC_KEY seg_key) |
void | FitSelection (HC_KEY key=INVALID_KEY, bool adjustToShellNormal=false) |
virtual void | FitWorld (HPoint *center_out=0) |
virtual void | FitWorldExact (HPoint *center_out=0) |
virtual void | Flush (bool emit_message=false) |
virtual void | FlushFromMessage (const char *in_data, unsigned int data_length) |
void | FlushProgressBar () |
virtual void | ForceUpdate () |
virtual bool | GeometryChanged () |
bool | GetAllowInteractiveCutGeometry () |
bool | GetAllowInteractiveShadows () |
bool | GetAnnotationResize () |
HUtilityAntialiasing * | GetAntialiasing () |
AxisMode | GetAxisMode () |
HC_KEY | GetAxisTriadKey () |
bool | GetBackplaneCulling () |
HC_KEY | GetBBoxGeometryKey () |
virtual void | GetCamera (HPoint *pos, HPoint *tar, HPoint *up, float &fieldx, float &fieldy, char *proj) |
virtual void | GetCamera (HCamera *camera) |
virtual bool | GetCameraChanged () |
bool | GetColorIndexInterpolation (char *option=0) |
HConstantFrameRate * | GetConstantFrameRateObject () |
bool | GetCPFaceVisibility () |
bool | GetCPLineVisibility () |
int | GetCullingThreshold () |
HBaseOperator * | GetCurrentOperator () |
HCutGeometryVisibility | GetCutGeometryVisibility () |
bool | GetCuttingPlaneRegenerationMode () |
bool | GetCuttingPlanesExist (const char *plane=0) |
bool | GetCuttingPlanesVisibility () |
HC_KEY | GetDefaultLightKey (int which=0) |
virtual float | GetDefaultSelectionProximity () |
virtual bool | GetDetailSelectionMode () |
DisplayListType | GetDisplayListType () |
const char * | GetDriverPath () |
const char * | GetDriverType () |
bool | GetDynamicHighlighting () |
HBaseViewEmitMessageFunction | GetEmitMessageFunction () |
void * | GetEmitMessageFunctionUserData () |
HEventManager * | GetEventManager () |
bool | GetFastMarkerDrawing () |
bool | GetFirstUpdate () |
bool | GetForceFastHiddenLine () |
bool | GetFrameBufferEffectsOptions (char *options=0, int *border=0) |
float | GetFramerate () |
int | GetFramerateCullingThreshold () |
FramerateMode | GetFramerateMode () |
int | GetFramerateSteps () |
HandednessMode | GetHandedness () |
virtual HBaseOperator * | GetHandleOperator () |
int | GetHardExtent () |
int | GetHardwareAntialiasing () |
virtual bool | GetHasObjects () |
bool | GetHideOverlappedText () |
virtual const HSelectionHighlightMode | GetHighlightMode () |
HSelectionSet * | GetHighlightSelection () |
HObjectManager * | GetHObjectManager () |
HC_KEY | GetIncludeLinkKey () |
bool | GetInitialCameraSet () |
virtual bool | GetInvertMouseWheelZoom () |
ViewMode | GetIsoDefault () |
bool | GetKeyState (unsigned int key, int &flags) |
int | GetLightCount () |
bool | GetLineAntialiasing () |
bool | GetLodMode () |
int | GetLodThreshold () |
HMarkupManager * | GetMarkupManager () |
float | GetMaximumUpdateTime () |
virtual HBaseModel * | GetModel () |
HC_KEY | GetModelKey () |
HBaseOperator * | GetOperator () |
HC_KEY | GetOverwriteKey () |
HC_KEY | GetProgressBarKey () |
ProjMode | GetProjMode () |
HQuickMovesMethod | GetQuickMovesMethod () const |
bool | GetRecordMode () |
virtual int | GetRelatedSelectionLimit () |
HRenderMode | GetRenderMode () |
bool | GetSceneBoundingSet () |
void | GetSceneExtents (HPoint &min, HPoint &max) |
HSelectionSet * | GetSelection () |
virtual bool | GetShadowIgnoresTransparency () |
virtual bool | GetShadowLightDirection (HPoint *direction=0) |
HC_KEY | GetShadowMapSegmentKey () |
HShadowMode | GetShadowMode () |
bool | GetShadowRegenerationMode () |
HShadowRenderingMode | GetShadowRenderingMode () |
HSharedKey * | GetSharedKey () |
bool | GetSmoothTransition () |
float | GetSmoothTransitionDuration () |
bool | GetSplatRendering () |
int | GetSplatSize () |
SplatSymbol | GetSplatSymbol () |
bool | GetSpritingMode () |
bool | GetSuppressUpdate () |
bool | GetSuppressUpdateTick () |
bool | GetTextAntialiasing () |
HTouchManager * | GetTouchManager () |
bool | GetTransparentSelectionBoxMode () |
HUndoManager * | GetUndoManager () |
bool | GetUpdateNotFinished () |
bool | GetUpdateRequested () |
bool | GetViewActive () |
void | GetViewAxis (HVector *front_axis, HVector *top_axis) |
HC_KEY | GetViewKey () |
ViewMode | GetViewMode () |
HViewSelectionLevel | GetViewSelectionLevel () |
ViewUpdateMode | GetViewUpdateMode () |
virtual bool | GetVisibilitySelectionMode () |
void | GetWindowColor (HPoint &color_out) |
void | GetWindowColor (HPoint &color_top, HPoint &color_bottom) |
void | GetWindowColor (HPoint &color_top, HPoint &color_bottom, int &percentage) |
void * | GetWindowHandle () |
void | GetWindowMaterial (char *out_material, char *out_pattern) |
int | GetXSize () |
int | GetYSize () |
bool | HasInitialView () |
void | HasInitialView (bool does_it) |
bool | HaveMarkupManager () |
HBaseView (HBaseModel *model, const char *alias=0, const char *driver_type=0, const char *instance_name=0, void *window_handle=0, void *colormap=0, void *clip_override=0, void *window_handle_2=0, const char *driver_path=0) | |
void | InitAntialiasing () |
void | InjectEvent (HEventInfo const &hevent) |
virtual void | InsertHSFData (const char *segment, const char *in_data, unsigned int data_length, bool emit_message=false) |
virtual void | InsertHSFDataFromMessage (const char *in_data, unsigned int data_length) |
virtual void | InternalUpdate () |
void | InvalidateSceneBounding () |
bool | IsFrameRateEnabled () |
bool | IsFramerateLodEnabled () |
bool | IsLightFollowCamera () |
void | Notify (int signal, void *signal_data=0) |
int | ObjectMovedEvent (HBaseView *view, HC_KEY key, HPoint *pos) |
virtual int | OnKeyDown (HEventInfo &hevent) |
virtual int | OnKeyUp (HEventInfo &hevent) |
virtual int | OnLButtonDblClk (HEventInfo &hevent) |
virtual int | OnLButtonDown (HEventInfo &hevent) |
virtual int | OnLButtonDownAndMove (HEventInfo &hevent) |
virtual int | OnLButtonUp (HEventInfo &hevent) |
virtual int | OnLRButtonDownAndMove (HEventInfo &hevent) |
virtual int | OnMButtonDownAndMove (HEventInfo &hevent) |
virtual int | OnMouseMove (HEventInfo &hevent) |
virtual int | OnMouseWheel (HEventInfo &hevent) |
virtual int | OnNoButtonDownAndMove (HEventInfo &hevent) |
virtual int | OnRButtonDownAndMove (HEventInfo &hevent) |
virtual void | OnSetAxisMode (AxisMode mode) |
virtual void | PrepareForCameraChange () |
void | RebindView (const char *alias=0, const char *driver_type=0, const char *instance_name=0, void *window_handle=0, void *colormap=0, void *clip_override=0, void *window_handle_2=0, int debug_flags=0) |
void | RemoveTransforms () |
void | RenderAntialiasing () |
void | RenderBRepHiddenLine () |
void | RenderBRepHiddenLineFast () |
void | RenderBRepWireframe () |
void | RenderFakeHiddenLine () |
void | RenderFlat () |
void | RenderGooch () |
void | RenderGouraud () |
void | RenderGouraudWithLines () |
void | RenderHiddenLine () |
void | RenderHiddenLineFast () |
void | RenderLOD1 () |
void | RenderLOD2 () |
void | RenderPhong () |
void | RenderShaded () |
void | RenderShadedVertices () |
void | RenderShadedWireframe () |
void | RenderShadedWithLines () |
void | RenderSilhouette () |
void | RenderVertices () |
void | RenderWireframe () |
void | RenderWireframeWithSilhouette () |
void | RequestUpdate () |
void | ResetIdleTime () |
void | ResetKeyState () |
void | RotateOnUpdate (const char *sname) |
virtual void | SelectFromMessage (const char *in_data, unsigned int data_length) |
void | SetAllowInteractiveCutGeometry (bool onoff) |
void | SetAllowInteractiveShadows (bool onoff) |
void | SetAnnotationResize (bool value) |
virtual void | SetAxisManipulateOperator (HOpCameraManipulate *op) |
virtual void | SetAxisMode (AxisMode mode) |
void | SetBackplaneCulling (bool cull) |
void | SetBBoxGeometryKey (HC_KEY bbox_key) |
virtual void | SetCamera (HPoint pos, HPoint tar, HPoint up, float fieldx, float fieldy, const char *proj) |
virtual void | SetCamera (HCamera camera) |
virtual void | SetCameraChanged (bool val=true) |
virtual void | SetCameraFromMessage (const char *data, unsigned int data_length) |
void | SetColorIndexInterpolation (bool onoff, bool isolines=false) |
void | SetColorInterpolation (bool onoff) |
void | SetConstantFrameRateObject (HConstantFrameRate *cf) |
void | SetConstructionKey (HC_KEY construct_key) |
void | SetCPGeomVisibility (bool lines, bool faces=false) |
void | SetCullingThreshold (int cullingthreshold) |
void | SetCurrentOperator (HBaseOperator *NewOperator) |
void | SetCutGeometryVisibility (HCutGeometryVisibility visibility) |
void | SetCuttingPlaneGeomKey (HC_KEY cuttingplanegeom_key) |
virtual void | SetCuttingPlaneRegenerationMode (bool onoff) |
void | SetCuttingPlanesExist (bool state) |
void | SetCuttingPlanesKey (HC_KEY cuttingplanes_key) |
void | SetCuttingPlanesVisibility (bool visible) |
void | SetDebugZBuffer (HDebugZBuffer *dzb) |
void | SetDefaultHSRA () |
virtual void | SetDefaultSelectionProximity (float selectionproximity) |
void | SetDepthOfField (bool onoff, float strength=1.0f) |
void | SetDepthOfFieldRange (float near=0.0f, float far=0.0f) |
virtual void | SetDetailSelection (bool onoff) |
void | SetDisplayHandlesOnDblClk (bool dh) |
void | SetDisplayListMode (bool mode) |
void | SetDisplayListType (DisplayListType type) |
void | SetDoubleBuffering (bool double_buffer) |
void | SetDynamicHighlighting (bool state) |
void | SetEmitMessageFunction (HBaseViewEmitMessageFunction new_emit_message_function, void *user_data=0) |
void | SetEventCheckerCallback (void(*EventChecker)(HIC_Rendition const *nr)) |
void | SetFastFitWorld (bool fw) |
void | SetFastMarkerDrawing (bool b_fast) |
virtual void | SetFontSize (const char *font_size, bool emit_message=false) |
virtual void | SetFontSizeFromMessage (const char *in_data, unsigned int data_length) |
void | SetForceFastHiddenLine (bool force) |
void | SetFramerateMode (FramerateMode mode, float framerate=0.1f, int cullingthreshold=150, bool enableLods=false, int steps=20, int cutoff=1) |
virtual void | SetGeometryChanged () |
virtual void | SetHandedness (HandednessMode mode, bool emit_message=false) |
virtual void | SetHandednessFromMessage (const char *in_data, unsigned int data_length) |
virtual void | SetHandleOperator (HBaseOperator *op) |
void | SetHardExtent (int cutoff) |
void | SetHardwareAntialiasing (int antialiasinglevel) |
virtual void | SetHasObjects (bool hasobjects) |
virtual void | SetHighlightMode (HSelectionHighlightMode m) |
void | SetIncludeLinkKey (HC_KEY link) |
virtual void | SetInitialCamera (HPoint pos, HPoint tar, HPoint up, float fieldx, float fieldy, char const *proj) |
void | SetIntersectPolylinesKey (HC_KEY intersectpolylines_key) |
virtual void | SetInvertMouseWheelZoom (bool val=true) |
void | SetIsoDefault (ViewMode vm) |
void | SetKeyStateCallback (bool(*KeyState)(unsigned int, int &)) |
void | SetLightCount (int count) |
void | SetLightFollowsCamera (bool onoroff) |
void | SetLightsKey (HC_KEY lights_key) |
void | SetLineAntialiasing (bool onoff) |
void | SetLodMode (bool onoff) |
void | SetLodThreshold (int val) |
void | SetMarkupManager (HMarkupManager *markup) |
void | SetMaximumUpdateTime (float mut) |
virtual void | SetModellingMatrixFromMessage (const char *in_data, unsigned int data_length) |
void | SetNavCube (bool onoff) |
void | SetOcclusionCullingMode (bool mode, bool UseOctree=true, int threshold=50) |
void | SetOperator (HBaseOperator *NewOperator) |
void | SetPolygonHandednessMode (HandednessMode) |
void | SetProgressBarKey (HC_KEY key) |
void | SetProjMode (ProjMode mode) |
void | SetRecordCamera (bool rc) |
virtual void | SetReferenceSelection (bool use_ref) |
virtual void | SetReflectionPlane (bool state, float opacity=0.5f, bool fading=true, bool attenuate=false, float hither=0.0f, float yon=1.0f, bool blur=false, int blur_level=1) |
virtual void | SetRelatedSelectionLimit (int limit) |
virtual void | SetRenderMode (HRenderMode NewRenderMode, bool emit_message=false) |
virtual void | SetRenderModeFromMessage (const char *in_data, unsigned int data_length) |
void | SetSceneBounding (HPoint &min, HPoint &max) |
void | SetSceneKey (HC_KEY scene_key) |
void | SetSelection (HSelectionSet *selection) |
virtual void | SetShadowBlurring (int blur) |
virtual void | SetShadowColor (HPoint color) |
virtual void | SetShadowIgnoresTransparency (bool ignore) |
virtual void | SetShadowLightDirection (bool explicit_light, HPoint const *direction=0) |
virtual void | SetShadowMode (HShadowMode sm, bool saveMode=true) |
virtual void | SetShadowRegenerationMode (bool onoff) |
virtual void | SetShadowRegenerationToggle () |
void | SetShadowRenderingMode (HShadowRenderingMode mode) |
virtual void | SetShadowResolution (int res) |
unsigned long | SetSignalNotify (int signal, HSignalNotifyFunction callback, void *user_data) |
void | SetSmoothTransitionDuration (float duration) |
void | SetSplatRendering (bool onoff) |
void | SetSplatSize (int splat_size) |
void | SetSplatSymbol (SplatSymbol symbol) |
void | SetSpritingMode (bool onoff) |
void | SetSuppressUpdate (bool suppress) |
void | SetSuppressUpdateTick (bool suppress) |
void | SetTextAntialiasing (bool onoff) |
void | SetTransparency (char const *text, bool fast_z_sort=false) |
void | SetTransparentSelectionBoxMode (bool mode) |
void | SetUpdateInterrupted (int val) |
void | SetUpdateNotFinished (bool NotFinished) |
int | SetupHandlesEvent (HBaseView *view, HC_KEY key, bool complex) |
void | SetViewAxis (HVector *front_axis, HVector *top_axis) |
void | SetViewKey (HC_KEY view_key) |
virtual void | SetViewMode (ViewMode mode, bool invert=false, bool fitWorld=true) |
void | SetViewSelectionLevel (HViewSelectionLevel level) |
void | SetViewUpdateMode (ViewUpdateMode mode, float rate=0.01f) |
virtual void | SetVisibilitySelectionMode (bool onoff) |
virtual void | SetWindowColor (HPoint rgb, bool emit_message=false) |
virtual void | SetWindowColor (HPoint rgbtop, HPoint rgbbottom, bool emit_message=false) |
virtual void | SetWindowColorFromMessage (const char *in_data, unsigned int data_length) |
virtual void | SetWindowColorRange (HPoint rgbtop, HPoint rgbbottom, int percentage, bool emit_message=false) |
virtual void | SetWindowMaterial (const char *name, bool emit_message=false) |
void | SetWindowspaceKey (HC_KEY winspace_key) |
void | SetZoomLimit (float zoomLimit) |
void | SetZoomLimit () |
virtual void | SmartFilterCircumcuboid (const char *segment, const char *defaults, HPoint *bottomfrontleft, HPoint *topbackright) |
virtual void | StartSharedKey () |
void | UnSetSignalNotify (unsigned long cookie) |
virtual void | Update () |
void | UpdateAxisTriad () |
int | UpdateEvent (bool antialias=false, bool forceUpdate=false) |
void | UpdateFakeHLRColor (HPoint paper_color) |
virtual void | UpdateHighlighting () |
virtual void | ZoomToExtents () |
virtual void | ZoomToInitialCamera () |
virtual | ~HBaseView () |
Custom HBaseView object which provides a few tutorial-specific methods
HAnalysisView::HAnalysisView | ( | HBaseModel * | model, |
const char * | alias = 0 , |
||
const char * | driver_type = 0 , |
||
const char * | instance_name = 0 , |
||
void * | window_handle = 0 , |
||
void * | colormap = 0 , |
||
void * | clip_override = 0 |
||
) |
HAnalysisView::~HAnalysisView | ( | ) |
bool HAnalysisView::AnimateSelectionSet | ( | ) |
The method animates the vertex color information on a shell. It first obtains the shell whose key is stored in HAnalysisModel::m_pShellVertexData (this data structure was initialized in the call to HAnalysisView::MapData) It then loops through (3 * HAnalysisModel::m_DataCycles) times, and modifies the shell's vertex colors by cycling through the array denoted by HShellVertexData::m_pFIndexArray pointer.
|
virtual |
Initializes the HOOPS/MVO view.
Reimplemented from HBaseView.
void HAnalysisView::MapData | ( | HC_KEY const | key | ) |
Creates an artificial set of color index values and applies it to the first shell in the selection list
bool HAnalysisView::MapSelectionSet | ( | ) |
Creates an artificial set of color index values and applies it to the shells in the selection list
void HAnalysisView::QuadInterpolateData | ( | HC_KEY const | key | ) |
replaces the shell with a 'quad' interpolated shell. It achives this by calling HUtilityGeometryCreation::GenerateFEAShell
bool HAnalysisView::QuadInterpolateSelectionSet | ( | ) |
Obtains the shells in the seleciton list, and replaces it with a 'quad' interpolated shell.
void HAnalysisView::SetVisibilityEdges | ( | bool | on_off | ) |
Toggles edge visibility