Hi
I am trying to create a new camera objects from a plugin but the reported function PluginFunctions::addCamera is missing. Also I would like to know how to associate a view with a camera. I have seen the viewerId and examinerId methods of the CamerObject class, but it is not clear how to use them.
Thank you Olaf
On 28.09.2012 13:38, Olaf Razzoli wrote:
Hi
I am trying to create a new camera objects from a plugin but the reported function PluginFunctions::addCamerais missing.
Hi,
you have to use the LoadSaveInterface: http://openflipper.org/Daily-Builds/Doc/Developer/loadSaveInterfacePage.html
There is also a code snippet on how to create cameras on this page: http://openflipper.org/Daily-Builds/Doc/Developer/CameraType.html
Also I would like to know how to associate a view with a camera. I have seen the viewerId and examinerId methods of the CamerObject class, but it is not clear how to use them.
Currently there is no direct interface to associate them. You can simply get the matrices from the camera object and set them in the viewer via the PluginFunctions
Best, Jan Möbius
openflipper@lists.rwth-aachen.de