|
#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) |
CoinLayer & | findOrAddLayer (CoinLayerID const &layerID) |
std::vector< CoinLayerID > | getLayerIDs () |
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< CoinVisualizerWrapper > | callbackData |
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 |
ElementInteractionData * | selectedElement = nullptr |
SoSelection * | selection = nullptr |
std::atomic< CoinVisualizerState > | state {CoinVisualizerState::STOPPED} |
std::mutex | stateMutex |
viz::StorageInterfacePrx | stateStorage |
viz::StorageInterfacePrx | storage |
std::mutex | storageMutex |
std::mutex | timingMutex |
std::atomic< CoinVisualizerUpdateResult > | updateResult {CoinVisualizerUpdateResult::SUCCESS} |
Definition at line 198 of file Visualizer.h.
CoinVisualizer | ( | ) |
~CoinVisualizer | ( | ) |
Definition at line 138 of file Visualizer.cpp.
void addOrUpdateElements | ( | CoinLayer * | layer, |
data::LayerUpdate const & | update | ||
) |
Definition at line 222 of file Visualizer.cpp.
void addOrUpdateInteraction | ( | CoinLayerID const & | layerID, |
std::string const & | elementID, | ||
data::InteractionDescription const & | interactionDesc, | ||
coin::ElementVisualization * | visu | ||
) |
Definition at line 319 of file Visualizer.cpp.
CoinVisualizer_ApplyTiming apply | ( | data::LayerUpdate const & | update | ) |
Definition at line 173 of file Visualizer.cpp.
void clearCache | ( | ) |
Definition at line 142 of file Visualizer.cpp.
void emitLayersChanged | ( | std::vector< CoinLayerID > const & | layerIDs | ) |
void emitLayerUpdated | ( | CoinLayerID const & | layerID, |
CoinLayer const & | layer | ||
) |
void exportToVRML | ( | std::string const & | exportFilePath | ) |
CoinLayer & findOrAddLayer | ( | CoinLayerID const & | layerID | ) |
Definition at line 204 of file Visualizer.cpp.
std::vector< CoinLayerID > getLayerIDs | ( | ) |
CoinVisualizer_UpdateTiming getTiming | ( | ) |
void onManipulation | ( | SoDragger * | dragger, |
int | eventType | ||
) |
void onSelectEvent | ( | SoPath * | path, |
int | eventType | ||
) |
Definition at line 619 of file Visualizer.cpp.
void onUpdateFailure | ( | Ice::Exception const & | ex | ) |
void onUpdateSuccess | ( | data::LayerUpdates const & | updates | ) |
void registerVisualizationTypes | ( | ) |
Definition at line 21 of file RegisterVisualizationTypes.cpp.
|
inline |
Definition at line 220 of file Visualizer.h.
void removeElementsIfNotUpdated | ( | CoinLayer * | layer | ) |
void selectElement | ( | int | index | ) |
Definition at line 583 of file Visualizer.cpp.
void showLayer | ( | CoinLayerID const & | id, |
bool | visible | ||
) |
void startAsync | ( | StorageInterfacePrx const & | storage | ) |
Definition at line 149 of file Visualizer.cpp.
void stop | ( | ) |
Definition at line 163 of file Visualizer.cpp.
void update | ( | ) |
Definition at line 389 of file Visualizer.cpp.
armarx::viz::Callback_StorageInterface_pullUpdatesSinceAndSendInteractionsPtr callback |
Definition at line 258 of file Visualizer.h.
IceUtil::Handle<CoinVisualizerWrapper> callbackData |
Definition at line 257 of file Visualizer.h.
std::vector<std::unique_ptr<ElementInteractionData> > elementInteractions |
Definition at line 250 of file Visualizer.h.
std::vector<std::unique_ptr<coin::ElementVisualizer> > elementVisualizers |
Definition at line 266 of file Visualizer.h.
std::vector<std::type_index> elementVisualizersTypes |
Definition at line 265 of file Visualizer.h.
std::vector<viz::data::InteractionFeedback> interactionFeedbackBuffer |
Definition at line 251 of file Visualizer.h.
CoinVisualizer_UpdateTiming lastTiming |
Definition at line 286 of file Visualizer.h.
CoinLayerMap layers |
Definition at line 263 of file Visualizer.h.
std::function<void(std::vector<CoinLayerID> const&)> layersChangedCallback |
Definition at line 280 of file Visualizer.h.
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.
SoTransformerManip* manipulator = nullptr |
Definition at line 271 of file Visualizer.h.
SoSeparator* manipulatorGroup = nullptr |
Definition at line 270 of file Visualizer.h.
data::LayerUpdates pulledUpdates |
Definition at line 274 of file Visualizer.h.
SoSeparator* root = nullptr |
Definition at line 269 of file Visualizer.h.
ElementInteractionData* selectedElement = nullptr |
Definition at line 253 of file Visualizer.h.
SoSelection* selection = nullptr |
Definition at line 268 of file Visualizer.h.
std::atomic<CoinVisualizerState> state {CoinVisualizerState::STOPPED} |
Definition at line 277 of file Visualizer.h.
std::mutex stateMutex |
Definition at line 276 of file Visualizer.h.
viz::StorageInterfacePrx stateStorage |
Definition at line 278 of file Visualizer.h.
viz::StorageInterfacePrx storage |
Definition at line 261 of file Visualizer.h.
std::mutex storageMutex |
Definition at line 260 of file Visualizer.h.
std::mutex timingMutex |
Definition at line 285 of file Visualizer.h.
std::atomic<CoinVisualizerUpdateResult> updateResult {CoinVisualizerUpdateResult::SUCCESS} |
Definition at line 273 of file Visualizer.h.