Package org.robwork.sdurw_graphics
Class CameraGroup
- java.lang.Object
 - 
- org.robwork.sdurw_graphics.CameraGroup
 
 
- 
public class CameraGroup extends java.lang.ObjectA group of cameras. 
- 
- 
Constructor Summary
Constructors Constructor Description CameraGroup(long cPtr, boolean cMemoryOwn) 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete()SWIGTYPE_p_std__listT_rw__core__PtrT_rw__graphics__SceneCamera_t_tgetCameras()Get all cameras in group.static longgetCPtr(CameraGroup obj)SWIGTYPE_p_rw__core__PtrT_rw__graphics__SceneCamera_tgetMainCamera()Get the main camera.java.lang.StringgetName()Get name of group.voidinsertCamera(SWIGTYPE_p_rw__core__PtrT_rw__graphics__SceneCamera_t cam, int index)Insert a camera in group.booleanisEnabled()Check if group is enabled.booleanisOffscreenRenderEnabled()Check if offscreen rendering is enabled.voidremoveCamera(int index)Remove camera.voidsetCopyToImage(ImagePtr img)Copy to image.voidsetCopyToScan25D(PointCloudPtr img)Copy to point cloud.voidsetEnabled(boolean enabled)Enable/disable group.voidsetMainCamera(SWIGTYPE_p_rw__core__PtrT_rw__graphics__SceneCamera_t cam)Set the main camera.voidsetMultiSample(int samples)Enable multi-sampling.voidsetOffscreenRenderColor(Image.ColorCode color)Set color space for offscreen rendering.booleansetOffscreenRenderEnabled(boolean enable)Enable/disable offscreen rendering.voidsetOffscreenRenderSize(int width, int height)Set size for offscreen rendering. 
 - 
 
- 
- 
Method Detail
- 
getCPtr
public static long getCPtr(CameraGroup obj)
 
- 
delete
public void delete()
 
- 
getName
public java.lang.String getName()
Get name of group.- Returns:
 - the name.
 
 
- 
isEnabled
public boolean isEnabled()
Check if group is enabled.- Returns:
 - true if enabled.
 
 
- 
setEnabled
public void setEnabled(boolean enabled)
Enable/disable group.- Parameters:
 enabled- [in] true to enable, false to disable.
 
- 
insertCamera
public void insertCamera(SWIGTYPE_p_rw__core__PtrT_rw__graphics__SceneCamera_t cam, int index)
Insert a camera in group.- Parameters:
 cam- [in] camera.index- [in] the index to insert at.
 
- 
removeCamera
public void removeCamera(int index)
Remove camera.- Parameters:
 index- [in] the index of the camera to remove.
 
- 
getCameras
public SWIGTYPE_p_std__listT_rw__core__PtrT_rw__graphics__SceneCamera_t_t getCameras()
Get all cameras in group.- Returns:
 - list of cameras.
 
 
- 
setMainCamera
public void setMainCamera(SWIGTYPE_p_rw__core__PtrT_rw__graphics__SceneCamera_t cam)
Set the main camera.- Parameters:
 cam- [in] main camera.
 
- 
getMainCamera
public SWIGTYPE_p_rw__core__PtrT_rw__graphics__SceneCamera_t getMainCamera()
Get the main camera.- Returns:
 - the main camera.
 
 
- 
setOffscreenRenderEnabled
public boolean setOffscreenRenderEnabled(boolean enable)
Enable/disable offscreen rendering.- Parameters:
 enable- [in] true to enable, false to disable.- Returns:
 - true if offscreen rendering was enabled, false if offscreen rendering is not
possible. 
 
- 
isOffscreenRenderEnabled
public boolean isOffscreenRenderEnabled()
Check if offscreen rendering is enabled.- Returns:
 - true if enabled, false otherwise.
 
 
- 
setOffscreenRenderSize
public void setOffscreenRenderSize(int width, int height)Set size for offscreen rendering.- Parameters:
 width- [in]height- [in]
 
- 
setOffscreenRenderColor
public void setOffscreenRenderColor(Image.ColorCode color)
Set color space for offscreen rendering.- Parameters:
 color- [in] the color space to use.
 
- 
setCopyToImage
public void setCopyToImage(ImagePtr img)
Copy to image.- Parameters:
 img- [out] image to copy to.
 
- 
setCopyToScan25D
public void setCopyToScan25D(PointCloudPtr img)
Copy to point cloud.- Parameters:
 img- [out] point cloud to copy to.
 
- 
setMultiSample
public void setMultiSample(int samples)
Enable multi-sampling.- Parameters:
 samples- [in] number of samples.
 
 - 
 
 -