Manager class that acts as a wrapper container for the CameravViewset class for OSG based view systems.
More...
#include <CameraViewSet.h>
Manager class that acts as a wrapper container for the CameravViewset class for OSG based view systems.
Definition at line 196 of file CameraViewSet.h.
| agxQt::OsgCameraViewManager::OsgCameraViewManager |
( |
| ) |
|
| virtual agxQt::OsgCameraViewManager::~OsgCameraViewManager |
( |
| ) |
|
|
protectedvirtual |
| void agx::Referenced::allocateObserverVector |
( |
| ) |
const |
|
protectedinherited |
template<typename T >
| T* agx::Referenced::as |
( |
| ) |
|
|
inherited |
template<typename T >
| const T* agx::Referenced::as |
( |
| ) |
const |
|
inherited |
template<typename T >
| T* agx::Referenced::asSafe |
( |
| ) |
|
|
inherited |
template<typename T >
| const T* agx::Referenced::asSafe |
( |
| ) |
const |
|
inherited |
| void agx::Referenced::deleteUsingDeleteHandler |
( |
| ) |
const |
|
protectedinherited |
| agx::String agxQt::OsgCameraViewManager::getActiveCameraViewName |
( |
| ) |
const |
Returns the active view name.
| static CameraDescription* agxQt::OsgCameraViewManager::getCameraDescriptionFromOsgViewer |
( |
osgViewer::Viewer * |
viewer | ) |
|
|
static |
Utility method for converting osgViewer views to CameraViewDescriptions.
Get the names for all loaded views.
| int agx::Referenced::getReferenceCount |
( |
| ) |
const |
|
inherited |
- Returns
- the number pointers currently referencing this object.
template<typename T >
| bool agx::Referenced::is |
( |
| ) |
const |
|
inherited |
| bool agxQt::OsgCameraViewManager::parseCameraState |
( |
agxCFG::ConfigScript * |
cfg, |
|
|
CameraDescription * |
c |
|
) |
| |
|
protected |
Tries to parse a camera state from the current position in the config script.
| void agx::Referenced::reference |
( |
void * |
ptr = nullptr | ) |
const |
|
inherited |
Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it.
This method should be used with care, always balanced with the same number of calls to unreference.
Referenced by agxData::Val< UInt >::Val().
| bool agxQt::OsgCameraViewManager::removeCameraViewFromName |
( |
const agx::String & |
name | ) |
|
Remove a loaded camera view given an string identifier. Returns false if not found, true if found and deleted.
| bool agxQt::OsgCameraViewManager::restoreViewsetFromCFGFile |
( |
const agx::String & |
filename | ) |
|
Restores the a view set from a .cfg file. Will overwrite the current view set in the manager.
| void agxQt::OsgCameraViewManager::setActiveView |
( |
osgViewer::Viewer * |
viewer | ) |
|
Sets the active view in the manager an osgViewer.
| bool agxQt::OsgCameraViewManager::setActiveViewFromName |
( |
const agx::String & |
name | ) |
|
Set active view in manager from name. Returns false if not found, true if found and deleted.
Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to.
| void agxQt::OsgCameraViewManager::setNextView |
( |
osgViewer::Viewer * |
viewer | ) |
|
Toggles the next view in stored views and sets it to an osgViewer.
| void agxQt::OsgCameraViewManager::setPreviousView |
( |
osgViewer::Viewer * |
viewer | ) |
|
Toggles a previous view in stored views and sets it to an osgViewer.
| void agxQt::OsgCameraViewManager::setViewOnOSGViewer |
( |
CameraDescription * |
c, |
|
|
osgViewer::Viewer * |
viewer |
|
) |
| |
|
protected |
| bool agxQt::OsgCameraViewManager::storeCameraState |
( |
agxCFG::ConfigScript * |
cfg, |
|
|
CameraDescription * |
c |
|
) |
| |
|
protected |
Stores the camera description in the in the current place in the configure script.
| void agxQt::OsgCameraViewManager::storeCurrentView |
( |
osgViewer::Viewer * |
viewer | ) |
|
Stores the current view in osg viewer.
| bool agxQt::OsgCameraViewManager::storeViewsetAsCFGFile |
( |
const agx::String & |
filename | ) |
|
Store the active configuration to a file.
| void agx::Referenced::unreference |
( |
void * |
ptr = nullptr | ) |
const |
|
inherited |
Decrement the reference count by one, indicating that a pointer to this object is referencing it.
If the reference count goes to zero, it is assumed that this object is no longer referenced and is automatically deleted.
This method should be used with care, always balanced with the same number of calls to reference.
| void agx::Referenced::unreference_nodelete |
( |
| ) |
const |
|
inherited |
Decrement the reference count by one, indicating that a pointer to this object is referencing it.
However, do not delete it, even if ref count goes to 0. Warning, unref_nodelete() should only be called if the user knows exactly who will be responsible for, one should prefer unref() over unref_nodelete() as the later can lead to memory leaks.
template<typename T >
| static bool agx::Referenced::ValidateCast |
( |
const Referenced * |
object | ) |
|
|
staticinherited |
| Mutex agx::Referenced::m_mutex |
|
mutableprotectedinherited |
|
|
mutableprotectedinherited |
| AtomicValue agx::Referenced::m_refCount |
|
mutableprotectedinherited |
The documentation for this class was generated from the following file: