渲染SDK 0.1.2
载入中...
搜索中...
未找到
Constants.h 文件参考

Constants Class File 更多...

#include "Macros.h"
#include <string>
#include <vector>
#include <functional>
Constants.h 的引用(Include)关系图:
此图展示该文件被哪些文件直接或间接地引用了:

宏定义

#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)
 
PickTypeAMCAXRender::operator|= (PickType &lhs, PickType rhs)
 
PickType AMCAXRender::operator& (PickType lhs, PickType rhs)
 
PickTypeAMCAXRender::operator&= (PickType &lhs, PickType rhs)
 
PickType AMCAXRender::operator~ (PickType lhs)
 

详细描述

Constants Class File

This file defines the Constants class

This file is part of AMCAXRender

宏定义说明

◆ renderGetMacro

#define renderGetMacro ( name,
type )
值:
public: \
type Get##name() const { return this->name; }

◆ renderGetSetMacro

#define renderGetSetMacro ( name,
type )
值:
renderGetMacro(name, type) \
renderSetMacro(name, type)

◆ renderSetMacro

#define renderSetMacro ( name,
type )
值:
public: \
void Set##name(type value) { this->name = value; }

类型定义说明

◆ Command

using AMCAXRender::Command = std::function<void(EntityId, EntityId, PickType, int, int*)>

Pick Callback Function

参数
EntityIdParent Entity ID
EntityIdChild Entity ID
PickTypePick Type, e.g., Point, Line, Face...
intPick Index, e.g., Which Face, Which Point...
int*Mouse Pixel Coordinates

◆ MarkerCommand

using AMCAXRender::MarkerCommand = std::function<void(MarkerType)>

Marker Callback

参数
MarkerTypeReturns Current Direction

◆ MoveAxesCommand

using AMCAXRender::MoveAxesCommand = std::function<void(EntityId,double* matrix)>

Movable Coordinate System Component Callback

参数
EntityIdEntity ID
matrixTransformation Matrix, The Matrix Structure is 4x4

◆ PluginCallback

using AMCAXRender::PluginCallback = std::function<void(EntityId, PickType, int, double*)>

Plugin Pick Callback Function

参数
EntityIdPlugin ID
PickTypePick Type, e.g., Point, Line, Face...
intPick Index, e.g., Which Face, Which Point...
double*Specific World Coordinates Closest to Mouse Position (Located on the Currently Selected Plugin)

◆ ShapeCommand

using AMCAXRender::ShapeCommand = std::function<void(EntityId, EntityId, PickType, const AMCAX::TopoShape& shape, int*)>

TopoShape Pick Callback Function

参数
EntityIdParent Entity ID
EntityIdChild Entity ID
PickTypePick Type, e.g., Point, Line, Face...
shapeTopoShape Data
int*Mouse Pixel Coordinates

枚举类型说明

◆ CameraMode

enum class AMCAXRender::CameraMode
strong

Camera Mode

枚举值
k3d 

3D Mode

k2d 

2D Mode

◆ ColorMapType

enum class AMCAXRender::ColorMapType
strong

Color Map Type

枚举值
CellLinearColorByCellScalar 

Apply color to cells based on cell scalars, with linear color mapping. Formerly known as: rampToLinear

CellStepColorByCellScalar 

Apply color to cells based on cell scalars, with step color mapping. Formerly known as: rampToStep

CellLinearColorByPointScalar 

Apply color to cells based on point scalars, with linear color mapping. Formerly known as: beforeRrampToLinear

CellStepColorByPointScalar 

Apply color to cells based on point scalars, with step color mapping. Formerly known as: beforeRampToStep

◆ CoordinatePluginStyle

Coordinate Plugin Style

枚举值
Default 

Default

NoArrowHead 

NoArrowHead

OpenArrowHead 

OpenArrowHead

SolidArrowHead 

SolidArrowHead

Planes 

Planes

◆ CoordStyle

enum class AMCAXRender::CoordStyle
strong

Coordinate System Style

枚举值
cubeView 

Cube Style

sailView 

Sail Style

cubeView2 

Cube Style 2

cubeView3 

Cube Style 3

◆ EntityDimension

enum class AMCAXRender::EntityDimension
strong

Entity Data Type

枚举值
D0 

Point

D1 

Curve, Lines

D2 

Face

D3 

Body

GROUP 

Group

◆ EventType

enum class AMCAXRender::EventType
strong

Pick Event Type

枚举值
mouse_hovered 

Hovered

mouse_hovered_out 

Hovered Out

mouse_click 

Left Click

mouse_double_click 

Left Double Click

mouse_click_null 

Null Click

◆ InteractonStyle

enum class AMCAXRender::InteractonStyle
strong

Mouse Interaction Style

枚举值
interaction_1 

Style 1

interaction_2 

Style 2

imageStyle 

ImageStyle

unknown 

unknown

◆ LightType

enum class AMCAXRender::LightType
strong

Light type

枚举值
Directional 

directional light

Point 

point light

Spot 

spot light

◆ MarkerEvent

enum class AMCAXRender::MarkerEvent
strong

Coordinate System Marker Event Type

枚举值
sailViewEvent 

Sail

cubeViewEvent 

Cube

◆ MouseEventType

enum class AMCAXRender::MouseEventType
strong

Mouse Event Type

枚举值
mouse_move 

Mouse Move

mouse_leftDown 

Left Button Down

mouse_leftUp 

Left Button Up

◆ PickType

enum class AMCAXRender::PickType
strong

Pick Type

枚举值
vert 

Vertex Pick

point 

Point Pick

edge 

Edge Pick

face 

Face Pick

body 

Body Pick

all 

All Pick

◆ PluginType

enum class AMCAXRender::PluginType
strong

Plugin Type

枚举值
kEntity 

Entity

kTextLabel 

Text

kArrow 

Arrow

kCoordinate 

Coordinate System

kDistance 

Distance Ruler

kBoundAnno 

Bounding Box Plugin

kArrowAnnocation 

Arrow Annotation, Supports Single and Double Arrow

kBoundsAnnocation 

Bounding Box Annotation Plugin

kMeasureMent 

Measure Plugin

k2dTextLabel 

2dTextLabel

kEntityClip 

EntityClip

kTextureProp 

TextureProp

kTexture2D 

Texture2D

kLinearDimension 

LinearDimension

kAngleDimension 

AngleDimension

◆ RenderMode

enum class AMCAXRender::RenderMode
strong

Render Mode Type

枚举值
Normal 

Normal Mode

Shaded 

Shading Mode

Edge 

Edge Mode

Wireframe 

Wireframe Mode

NoFrame 

No Frame Mode

Transparent 

Transparent Mode

◆ RubberBandStatus

enum class AMCAXRender::RubberBandStatus
strong

Rubber Band Status

枚举值
ZoomPermanent 

Zoom Permanent

ZoomOnce 

Zoom Once

PickPermanent 

Pick Permanent

PickOnce 

Pick Once

◆ ViewType

enum class AMCAXRender::ViewType
strong

CTR Window Type

枚举值
MAIN 

MAIN Rendering Window

TOP 

TOP Rendering Window

FRONT 

FRONT Rendering Window

RIGHT 

RIGHT Rendering Window