渲染SDK 0.1.2
|
Constants Class File 更多...
#include "Macros.h"
#include <string>
#include <vector>
#include <functional>
宏定义 | |
#define | renderGetMacro(name, type) |
#define | renderSetMacro(name, type) |
#define | renderGetSetMacro(name, type) |
类型定义 | |
typedef std::string | AMCAXRender::EntityId |
typedef int | AMCAXRender::EventId |
using | AMCAXRender::Command = std::function<void(EntityId, EntityId, PickType, int, int*)> |
Pick Callback Function | |
using | AMCAXRender::MarkerCommand = std::function<void(MarkerType)> |
Marker Callback | |
using | AMCAXRender::MoveAxesCommand = std::function<void(EntityId,double* matrix)> |
Movable Coordinate System Component Callback | |
using | AMCAXRender::ShapeCommand = std::function<void(EntityId, EntityId, PickType, const AMCAX::TopoShape& shape, int*)> |
TopoShape Pick Callback Function | |
using | AMCAXRender::PluginCallback = std::function<void(EntityId, PickType, int, double*)> |
Plugin Pick Callback Function | |
using | AMCAXRender::RubberBandZoomCallback = std::function<void()> |
Rubber Band Zoom Callback | |
using | AMCAXRender::RubberBandPickCallback = std::function<void(std::unordered_map<EntityId, std::unordered_map<PickType, std::vector<int>>>)> |
Rubber Band Pick Callback | |
using | AMCAXRender::MouseCommand = std::function<void(MouseEventType)> |
Mouse Event Callback | |
using | AMCAXRender::FocusCommand = std::function<void()> |
Focus Event Callback | |
枚举 | |
enum class | AMCAXRender::ViewType { MAIN , TOP , FRONT , RIGHT } |
CTR Window Type 更多... | |
enum class | AMCAXRender::EntityDimension { UNKNOWN , D0 , D1 , D2 , D3 , GROUP } |
Entity Data Type 更多... | |
enum class | AMCAXRender::CoordStyle { none , cubeView , sailView , cubeView2 , cubeView3 } |
Coordinate System Style 更多... | |
enum class | AMCAXRender::InteractonStyle { interaction_1 , interaction_2 , imageStyle , unknown } |
Mouse Interaction Style 更多... | |
enum class | InteractionOperation { None , Rotate , Pan , Zoom } |
enum class | InteractionHotKey { LeftButton , MiddleButton , RightButton } |
enum class | RotationCenter { Default , Origin , BoundingBoxCenter } |
enum class | AMCAXRender::EventType { mouse_hovered , mouse_hovered_out , mouse_click , mouse_double_click , mouse_click_null } |
Pick Event Type 更多... | |
enum class | AMCAXRender::MouseEventType { mouse_move , mouse_leftDown , mouse_leftUp } |
Mouse Event Type 更多... | |
enum class | AMCAXRender::PickType { unknown = 1 << 0 , vert = 1 << 1 , point = 1 << 2 , edge = 1 << 3 , face = 1 << 4 , body = vert | point | edge | face , all = 1 << 5 | body } |
Pick Type 更多... | |
enum class | AMCAXRender::MarkerEvent { sailViewEvent , cubeViewEvent } |
Coordinate System Marker Event Type 更多... | |
enum class | AMCAXRender::MarkerType { unknown , sailXY , sailXZ , sailYZ , CUBE_UP , CUBE_DOWN , CUBE_RIGHT , CUBE_LEFT , CUBE_FRONT , CUBE_BACK , CUBE_FRONT_RIGHT_UP , CUBE_RIGHT_BACK_UP , CUBE_LEFT_FRONT_UP , CUBE_BACK_LEFT_UP , CUBE_FRONT_RIGHT_DOWN , CUBE_RIGHT_BACK_DOWN , CUBE_LEFT_FRONT_DOWN , CUBE_BACK_LEFT_DOWN , CUBE_FRONT_RIGHT , CUBE_RIGHT_BACK , CUBE_LEFT_FRONT , CUBE_BACK_LEFT , CUBE_FRONT_UP , CUBE_BACK_UP , CUBE_FRONT_DOWN , CUBE_BACK_DOWN , CUBE_RIGHT_UP , CUBE_LEFT_UP , CUBE_RIGHT_DOWN , CUBE_LEFT_DOWN } |
Marker Type | |
enum class | AMCAXRender::CameraMode { k3d , k2d } |
Camera Mode 更多... | |
enum class | AMCAXRender::PlaneStyle { none , standardPlane } |
Standard Plane Style | |
enum class | AMCAXRender::CameraView { UP = 0 , DOWN , RIGHT , LEFT , FRONT , BACK , FRONT_RIGHT_UP , RIGHT_BACK_UP , LEFT_FRONT_UP , BACK_LEFT_UP , FRONT_RIGHT_DOWN , RIGHT_BACK_DOWN , LEFT_FRONT_DOWN , BACK_LEFT_DOWN , FRONT_RIGHT , RIGHT_BACK , LEFT_FRONT , BACK_LEFT , FRONT_UP , BACK_UP , FRONT_DOWN , BACK_DOWN , RIGHT_UP , LEFT_UP , RIGHT_DOWN , LEFT_DOWN } |
Camera View | |
enum class | AMCAXRender::PluginType { kUnkown = 0 , kEntity , kTextLabel , kArrow , kCoordinate , kDistance , kBoundAnno , kArrowAnnocation , kBoundsAnnocation , kMeasureMent , k2dTextLabel , kEntityClip , kTextureProp , kTexture2D , kLinearDimension , kAngleDimension } |
Plugin Type 更多... | |
enum class | AMCAXRender::CoordinatePluginStyle { Default = 0 , NoArrowHead , OpenArrowHead , SolidArrowHead , Planes } |
Coordinate Plugin Style 更多... | |
enum class | AMCAXRender::RubberBandStatus { Disable = 0 , ZoomPermanent , ZoomOnce , PickPermanent , PickOnce } |
Rubber Band Status 更多... | |
enum class | AMCAXRender::LineThickness { Thickest = 6 , Thick = 5 , Medium = 4 , Normal = 3 , Thin = 2 , Thinner = 1 , Thinnest = 0 } |
Zebra Line Thickness | |
enum class | AMCAXRender::ColorMapType { CellLinearColorByCellScalar = 0 , CellStepColorByCellScalar , CellLinearColorByPointScalar , CellStepColorByPointScalar } |
Color Map Type 更多... | |
enum class | AMCAXRender::RenderMode { Normal = 0 , Shaded , Edge , Wireframe , NoFrame , Transparent } |
Render Mode Type 更多... | |
enum class | AMCAXRender::LightType { Directional = 0 , Point , Spot } |
Light type 更多... | |
函数 | |
PickType | AMCAXRender::operator| (PickType lhs, PickType rhs) |
PickType & | AMCAXRender::operator|= (PickType &lhs, PickType rhs) |
PickType | AMCAXRender::operator& (PickType lhs, PickType rhs) |
PickType & | AMCAXRender::operator&= (PickType &lhs, PickType rhs) |
PickType | AMCAXRender::operator~ (PickType lhs) |
Constants Class File
This file defines the Constants class
#define renderGetMacro | ( | name, | |
type ) |
#define renderGetSetMacro | ( | name, | |
type ) |
#define renderSetMacro | ( | name, | |
type ) |
using AMCAXRender::Command = std::function<void(EntityId, EntityId, PickType, int, int*)> |
Pick Callback Function
EntityId | Parent Entity ID |
EntityId | Child Entity ID |
PickType | Pick Type, e.g., Point, Line, Face... |
int | Pick Index, e.g., Which Face, Which Point... |
int* | Mouse Pixel Coordinates |
using AMCAXRender::MarkerCommand = std::function<void(MarkerType)> |
Marker Callback
MarkerType | Returns Current Direction |
using AMCAXRender::MoveAxesCommand = std::function<void(EntityId,double* matrix)> |
Movable Coordinate System Component Callback
EntityId | Entity ID |
matrix | Transformation Matrix, The Matrix Structure is 4x4 |
using AMCAXRender::PluginCallback = std::function<void(EntityId, PickType, int, double*)> |
Plugin Pick Callback Function
EntityId | Plugin ID |
PickType | Pick Type, e.g., Point, Line, Face... |
int | Pick Index, e.g., Which Face, Which Point... |
double* | Specific World Coordinates Closest to Mouse Position (Located on the Currently Selected Plugin) |
using AMCAXRender::ShapeCommand = std::function<void(EntityId, EntityId, PickType, const AMCAX::TopoShape& shape, int*)> |
TopoShape Pick Callback Function
EntityId | Parent Entity ID |
EntityId | Child Entity ID |
PickType | Pick Type, e.g., Point, Line, Face... |
shape | TopoShape Data |
int* | Mouse Pixel Coordinates |
|
strong |
|
strong |
Color Map Type
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
Plugin Type
|
strong |
Render Mode Type
枚举值 | |
---|---|
Normal | Normal Mode |
Shaded | Shading Mode |
Edge | Edge Mode |
Wireframe | Wireframe Mode |
NoFrame | No Frame Mode |
Transparent | Transparent Mode |
|
strong |
|
strong |