CoinVisualizer Class Reference

#include <RobotAPI/components/ArViz/Coin/Visualizer.h>

Public Member Functions

void addOrUpdateElements (CoinLayer *layer, data::LayerUpdate const &update)
 
void addOrUpdateInteraction (CoinLayerID const &layerID, std::string const &elementID, data::InteractionDescription const &interactionDesc, coin::ElementVisualization *visu)
 
CoinVisualizer_ApplyTiming apply (data::LayerUpdate const &update)
 
void clearCache ()
 
 CoinVisualizer ()
 
void emitLayersChanged (std::vector< CoinLayerID > const &layerIDs)
 
void emitLayerUpdated (CoinLayerID const &layerID, CoinLayer const &layer)
 
void exportToVRML (std::string const &exportFilePath)
 
CoinLayerfindOrAddLayer (CoinLayerID const &layerID)
 
std::vector< CoinLayerIDgetLayerIDs ()
 
CoinVisualizer_UpdateTiming getTiming ()
 
void onManipulation (SoDragger *dragger, int eventType)
 
void onSelectEvent (SoPath *path, int eventType)
 
void onUpdateFailure (Ice::Exception const &ex)
 
void onUpdateSuccess (data::LayerUpdates const &updates)
 
void registerVisualizationTypes ()
 
template<typename ElementVisuT >
void registerVisualizerFor ()
 
void removeElementsIfNotUpdated (CoinLayer *layer)
 
void selectElement (int index)
 
void showLayer (CoinLayerID const &id, bool visible)
 
void startAsync (StorageInterfacePrx const &storage)
 
void stop ()
 
void update ()
 
 ~CoinVisualizer ()
 

Public Attributes

armarx::viz::Callback_StorageInterface_pullUpdatesSinceAndSendInteractionsPtr callback
 
IceUtil::Handle< CoinVisualizerWrappercallbackData
 
std::vector< std::unique_ptr< ElementInteractionData > > elementInteractions
 
std::vector< std::unique_ptr< coin::ElementVisualizer > > elementVisualizers
 
std::vector< std::type_index > elementVisualizersTypes
 
std::vector< viz::data::InteractionFeedback > interactionFeedbackBuffer
 
CoinVisualizer_UpdateTiming lastTiming
 
CoinLayerMap layers
 
std::function< void(std::vector< CoinLayerID > const &)> layersChangedCallback
 
std::vector< std::function< void(CoinLayerID const &layerID, CoinLayer const &layer)> > layerUpdatedCallbacks
 A layer's data has changed. More...
 
SoTransformerManip * manipulator = nullptr
 
SoSeparator * manipulatorGroup = nullptr
 
data::LayerUpdates pulledUpdates
 
SoSeparator * root = nullptr
 
ElementInteractionDataselectedElement = nullptr
 
SoSelection * selection = nullptr
 
std::atomic< CoinVisualizerStatestate {CoinVisualizerState::STOPPED}
 
std::mutex stateMutex
 
viz::StorageInterfacePrx stateStorage
 
viz::StorageInterfacePrx storage
 
std::mutex storageMutex
 
std::mutex timingMutex
 
std::atomic< CoinVisualizerUpdateResultupdateResult {CoinVisualizerUpdateResult::SUCCESS}
 

Detailed Description

Definition at line 198 of file Visualizer.h.

Constructor & Destructor Documentation

◆ CoinVisualizer()

Definition at line 112 of file Visualizer.cpp.

+ Here is the call graph for this function:

◆ ~CoinVisualizer()

Definition at line 138 of file Visualizer.cpp.

Member Function Documentation

◆ addOrUpdateElements()

void addOrUpdateElements ( CoinLayer layer,
data::LayerUpdate const &  update 
)

Definition at line 222 of file Visualizer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addOrUpdateInteraction()

void addOrUpdateInteraction ( CoinLayerID const &  layerID,
std::string const &  elementID,
data::InteractionDescription const &  interactionDesc,
coin::ElementVisualization visu 
)

Definition at line 319 of file Visualizer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ apply()

CoinVisualizer_ApplyTiming apply ( data::LayerUpdate const &  update)

Definition at line 173 of file Visualizer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clearCache()

void clearCache ( )

Definition at line 142 of file Visualizer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ emitLayersChanged()

void emitLayersChanged ( std::vector< CoinLayerID > const &  layerIDs)

Definition at line 564 of file Visualizer.cpp.

+ Here is the caller graph for this function:

◆ emitLayerUpdated()

void emitLayerUpdated ( CoinLayerID const &  layerID,
CoinLayer const &  layer 
)

Definition at line 572 of file Visualizer.cpp.

+ Here is the caller graph for this function:

◆ exportToVRML()

void exportToVRML ( std::string const &  exportFilePath)

Definition at line 942 of file Visualizer.cpp.

+ Here is the call graph for this function:

◆ findOrAddLayer()

CoinLayer & findOrAddLayer ( CoinLayerID const &  layerID)

Definition at line 204 of file Visualizer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getLayerIDs()

std::vector< CoinLayerID > getLayerIDs ( )

Definition at line 553 of file Visualizer.cpp.

+ Here is the caller graph for this function:

◆ getTiming()

Definition at line 547 of file Visualizer.cpp.

+ Here is the caller graph for this function:

◆ onManipulation()

void onManipulation ( SoDragger *  dragger,
int  eventType 
)

Definition at line 812 of file Visualizer.cpp.

+ Here is the call graph for this function:

◆ onSelectEvent()

void onSelectEvent ( SoPath *  path,
int  eventType 
)

Definition at line 619 of file Visualizer.cpp.

◆ onUpdateFailure()

void onUpdateFailure ( Ice::Exception const &  ex)

Definition at line 507 of file Visualizer.cpp.

+ Here is the caller graph for this function:

◆ onUpdateSuccess()

void onUpdateSuccess ( data::LayerUpdates const &  updates)

Definition at line 501 of file Visualizer.cpp.

+ Here is the caller graph for this function:

◆ registerVisualizationTypes()

void registerVisualizationTypes ( )

Definition at line 21 of file RegisterVisualizationTypes.cpp.

+ Here is the caller graph for this function:

◆ registerVisualizerFor()

void registerVisualizerFor ( )
inline

Definition at line 220 of file Visualizer.h.

◆ removeElementsIfNotUpdated()

void removeElementsIfNotUpdated ( CoinLayer layer)

Definition at line 350 of file Visualizer.cpp.

+ Here is the caller graph for this function:

◆ selectElement()

void selectElement ( int  index)

Definition at line 583 of file Visualizer.cpp.

◆ showLayer()

void showLayer ( CoinLayerID const &  id,
bool  visible 
)

Definition at line 514 of file Visualizer.cpp.

+ Here is the call graph for this function:

◆ startAsync()

void startAsync ( StorageInterfacePrx const &  storage)

Definition at line 149 of file Visualizer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stop()

void stop ( )

Definition at line 163 of file Visualizer.cpp.

◆ update()

void update ( )

Definition at line 389 of file Visualizer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ callback

armarx::viz::Callback_StorageInterface_pullUpdatesSinceAndSendInteractionsPtr callback

Definition at line 258 of file Visualizer.h.

◆ callbackData

Definition at line 257 of file Visualizer.h.

◆ elementInteractions

std::vector<std::unique_ptr<ElementInteractionData> > elementInteractions

Definition at line 250 of file Visualizer.h.

◆ elementVisualizers

std::vector<std::unique_ptr<coin::ElementVisualizer> > elementVisualizers

Definition at line 266 of file Visualizer.h.

◆ elementVisualizersTypes

std::vector<std::type_index> elementVisualizersTypes

Definition at line 265 of file Visualizer.h.

◆ interactionFeedbackBuffer

std::vector<viz::data::InteractionFeedback> interactionFeedbackBuffer

Definition at line 251 of file Visualizer.h.

◆ lastTiming

Definition at line 286 of file Visualizer.h.

◆ layers

CoinLayerMap layers

Definition at line 263 of file Visualizer.h.

◆ layersChangedCallback

std::function<void(std::vector<CoinLayerID> const&)> layersChangedCallback

Definition at line 280 of file Visualizer.h.

◆ layerUpdatedCallbacks

std::vector<std::function<void(CoinLayerID const& layerID, CoinLayer const& layer)> > layerUpdatedCallbacks

A layer's data has changed.

Definition at line 283 of file Visualizer.h.

◆ manipulator

SoTransformerManip* manipulator = nullptr

Definition at line 271 of file Visualizer.h.

◆ manipulatorGroup

SoSeparator* manipulatorGroup = nullptr

Definition at line 270 of file Visualizer.h.

◆ pulledUpdates

data::LayerUpdates pulledUpdates

Definition at line 274 of file Visualizer.h.

◆ root

SoSeparator* root = nullptr

Definition at line 269 of file Visualizer.h.

◆ selectedElement

ElementInteractionData* selectedElement = nullptr

Definition at line 253 of file Visualizer.h.

◆ selection

SoSelection* selection = nullptr

Definition at line 268 of file Visualizer.h.

◆ state

Definition at line 277 of file Visualizer.h.

◆ stateMutex

std::mutex stateMutex

Definition at line 276 of file Visualizer.h.

◆ stateStorage

viz::StorageInterfacePrx stateStorage

Definition at line 278 of file Visualizer.h.

◆ storage

viz::StorageInterfacePrx storage

Definition at line 261 of file Visualizer.h.

◆ storageMutex

std::mutex storageMutex

Definition at line 260 of file Visualizer.h.

◆ timingMutex

std::mutex timingMutex

Definition at line 285 of file Visualizer.h.

◆ updateResult

Definition at line 273 of file Visualizer.h.


The documentation for this class was generated from the following files: