渲染SDK 0.1.2
|
Plugin Management Class 更多...
#include <Interface/PluginManage.h>
Public 成员函数 | |
virtual EntityId | AddPluginFromMeshEntity (std::shared_ptr< AbstractEntity > entity, bool isInstancedRender=false)=0 |
Add Plugin from Entity Geometry Data | |
virtual EntityId | UpdateEntityPlugin (std::shared_ptr< AbstractEntity > entity)=0 |
Update Plugin from Entity Geometry Data | |
virtual void | UpdateInstancedPointData (EntityId id, InstancedPointData &data)=0 |
Update Instanced Point Data | |
virtual EntityId | AddPluginFromType (PluginType type, EntityId pid="")=0 |
Create Plugin from Plugin Type | |
virtual void | RemovePlugin (EntityId id)=0 |
Remove Plugin | |
virtual void | SetProperty (EntityId id, std::shared_ptr< PluginProperty > prop, ViewType viewType=ViewType::MAIN)=0 |
Set Plugin Property | |
virtual std::shared_ptr< PluginProperty > | GetProperty (EntityId id, ViewType viewType=ViewType::MAIN)=0 |
Get Plugin Property | |
virtual void | BatchSetProperties (EntityId id, std::shared_ptr< PluginProperty > prop)=0 |
Set Batch Plugin Property | |
template<class T> | |
std::shared_ptr< T > | GetProperty (EntityId id, ViewType viewType=ViewType::MAIN) |
Get Plugin Property | |
virtual void | SetVisible (EntityId id, bool visible, ViewType viewType=ViewType::MAIN)=0 |
Set Plugin Visibility | |
virtual void | SetMatrix (EntityId id, double *matrix)=0 |
Set Plugin Transformation Matrix | |
virtual void | PickEventFilter (PickType type)=0 |
Set Pick Event Filter | |
virtual EventId | RegisterPickEvent (EventType event, PluginCallback command)=0 |
Register Pick Event, Unregister Pick Event | |
virtual void | UnregisterPickEvent (EventId id)=0 |
Unregister Pick Event | |
virtual void | UnregisterPickEvent (EventType event)=0 |
Unregister Pick Event | |
virtual void | SetHightLight (EntityId id)=0 |
Set Highlight | |
virtual void | ClearHightLight (EntityId id)=0 |
Clear Highlight | |
virtual void | SetHightLight (EntityId id, PickType type, std::vector< int > indexs)=0 |
Set Highlight for Specific Plugin Submodule | |
virtual void | ClearHightLight ()=0 |
Clear Highlight | |
virtual void | AddHightLight (EntityId id, PickType type, int index)=0 |
Add Highlight to Plugin Submodule | |
virtual void | RemoveHightLight (EntityId id, PickType type, int index)=0 |
Remove Highlight from Plugin Submodule | |
virtual void | SetHightLightColor (double rgb[3])=0 |
Set Highlight Color | |
virtual void | UpdateEntityCellRange (EntityId id, EntityPlugProp::DataType type, unsigned long long min=0, unsigned long long max=0)=0 |
Set the cell display range for the Entity plugin | |
virtual void | ResetEntityCellRange (EntityId id, EntityPlugProp::DataType type)=0 |
Resets the range of visible cells. After calling this function, all cells will be hidden. | |
virtual void | RemoveAll ()=0 |
remove all plugins | |
Plugin Management Class
Used for adding, deleting, modifying, and querying plugins, as well as message registration
|
pure virtual |
Add Highlight to Plugin Submodule
This interface can be used to set the highlight of specific points, lines, and surfaces in the plugin
[in] | id | Plugin id |
[in] | type | Data type, (point, line, surface) |
[in] | index | Submodule number |
|
pure virtual |
Add Plugin from Entity Geometry Data
[in] | entity | Entity object |
|
pure virtual |
Create Plugin from Plugin Type
[in] | type | Plugin type |
|
pure virtual |
Set Batch Plugin Property
[in] | id | Plugin id |
[in] | prop | Plugin property |
|
pure virtual |
Clear Highlight
|
pure virtual |
Clear Highlight
[in] | id | Plugin id |
|
inline |
Get Plugin Property
Property | type |
[in] | id | Plugin id |
|
pure virtual |
Get Plugin Property
[in] | id | Plugin id |
|
pure virtual |
Set Pick Event Filter
[in] | type | Data type, point, line, surface |
|
pure virtual |
Register Pick Event, Unregister Pick Event
[in] | event | Event type |
[in] | type | Callback function |
|
pure virtual |
Remove Highlight from Plugin Submodule
This interface can be used to set the highlight of specific points, lines, and surfaces in the plugin
[in] | id | Plugin id |
[in] | type | Data type, (point, line, surface) |
[in] | index | Submodule number |
|
pure virtual |
Remove Plugin
[in] | id | Plugin id |
|
pure virtual |
Resets the range of visible cells. After calling this function, all cells will be hidden.
[in] | id | Plugin ID |
[in] | type | Data type, currently supports line and face |
|
pure virtual |
Set Highlight
[in] | id | Plugin id |
|
pure virtual |
Set Highlight for Specific Plugin Submodule
This interface can be used to set the highlight of specific points, lines, and surfaces in the plugin
[in] | id | Plugin id |
[in] | type | Data type, (point, line, surface) |
[in] | indexs | Submodule numbers |
|
pure virtual |
Set Highlight Color
[in] | rgb | Color value, color range [0,1] |
|
pure virtual |
Set Plugin Transformation Matrix
[in] | id | Plugin id |
[in] | matrix | Matrix |
|
pure virtual |
Set Plugin Property
[in] | id | Plugin id |
[in] | prop | Plugin property |
|
pure virtual |
Set Plugin Visibility
[in] | id | Plugin id |
[in] | visible | Visibility flag |
|
pure virtual |
Unregister Pick Event
[in] | id | Event id |
|
pure virtual |
Unregister Pick Event
[in] | event | Event type |
|
pure virtual |
Set the cell display range for the Entity plugin
[in] | id | Plugin ID |
[in] | type | Data type, currently supports line and face |
[in] | min | Minimum index |
[in] | max | Maximum index |
|
pure virtual |
Update Plugin from Entity Geometry Data
[in] | id | Plugin id |
[in] | entity | Entity object |
|
pure virtual |
Update Instanced Point Data
[in] | id | Plugin id |
[in] | data | Point data |