Package gaiasky.util
Class GlobalConf.FrameConf
java.lang.Object
gaiasky.util.GlobalConf.FrameConf
- All Implemented Interfaces:
IObserver
,GlobalConf.IConf
- Enclosing class:
- GlobalConf
public static class GlobalConf.FrameConf extends java.lang.Object implements GlobalConf.IConf, IObserver
Holds the configuration for the output frame subsystem and the camera
recording.
-
Field Summary
Fields Modifier and Type Field Description boolean
AUTO_FRAME_OUTPUT_CAMERA_PLAY
Automatically activate frame output system when playing camera filedouble
CAMERA_REC_TARGET_FPS
The target FPS when recording the cameraGlobalConf.ImageFormat
FRAME_FORMAT
FormatGlobalConf.ScreenshotMode
FRAME_MODE
The frame output screenshot modefloat
FRAME_QUALITY
Quality, in case format is JPGCameraKeyframeManager.PathType
KF_PATH_TYPE_ORIENTATION
Path type of camera orientationCameraKeyframeManager.PathType
KF_PATH_TYPE_POSITION
Path type of camera positionstatic int
MAX_FRAME_SIZE
static int
MIN_FRAME_SIZE
java.lang.String
RENDER_FILE_NAME
The prefix for the image filesjava.lang.String
RENDER_FOLDER
The output folderint
RENDER_HEIGHT
The height of the image framesboolean
RENDER_OUTPUT
Whether the frame system is activated or notboolean
RENDER_SCREENSHOT_TIME
Should we write the simulation time to the images?double
RENDER_TARGET_FPS
The number of images per second to produceint
RENDER_WIDTH
The width of the image frames -
Constructor Summary
Constructors Constructor Description FrameConf()
-
Method Summary
Modifier and Type Method Description void
initialize(int rENDER_WIDTH, int rENDER_HEIGHT, double rENDER_TARGET_FPS, double cAMERA_REC_TARGET_FPS, boolean aUTO_FRAME_OUTPUT_CAMERA_PLAY, java.lang.String rENDER_FOLDER, java.lang.String rENDER_FILE_NAME, boolean rENDER_SCREENSHOT_TIME, boolean rENDER_OUTPUT, GlobalConf.ScreenshotMode fRAME_MODE, GlobalConf.ImageFormat fRAME_FORMAT, float fRAME_QUALITY, CameraKeyframeManager.PathType kF_PATH_TYPE_POSITION, CameraKeyframeManager.PathType kF_PATH_TYPE_ORIENTATION)
boolean
isRedrawMode()
boolean
isSimpleMode()
void
notify(Events event, java.lang.Object... data)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
MIN_FRAME_SIZE
public static final int MIN_FRAME_SIZE- See Also:
- Constant Field Values
-
MAX_FRAME_SIZE
public static final int MAX_FRAME_SIZE- See Also:
- Constant Field Values
-
RENDER_WIDTH
public int RENDER_WIDTHThe width of the image frames -
RENDER_HEIGHT
public int RENDER_HEIGHTThe height of the image frames -
RENDER_TARGET_FPS
public double RENDER_TARGET_FPSThe number of images per second to produce -
CAMERA_REC_TARGET_FPS
public double CAMERA_REC_TARGET_FPSThe target FPS when recording the camera -
AUTO_FRAME_OUTPUT_CAMERA_PLAY
public boolean AUTO_FRAME_OUTPUT_CAMERA_PLAYAutomatically activate frame output system when playing camera file -
RENDER_FOLDER
public java.lang.String RENDER_FOLDERThe output folder -
RENDER_FILE_NAME
public java.lang.String RENDER_FILE_NAMEThe prefix for the image files -
RENDER_SCREENSHOT_TIME
public boolean RENDER_SCREENSHOT_TIMEShould we write the simulation time to the images? -
RENDER_OUTPUT
public boolean RENDER_OUTPUTWhether the frame system is activated or not -
FRAME_MODE
The frame output screenshot mode -
FRAME_FORMAT
Format -
FRAME_QUALITY
public float FRAME_QUALITYQuality, in case format is JPG -
KF_PATH_TYPE_POSITION
Path type of camera position -
KF_PATH_TYPE_ORIENTATION
Path type of camera orientation
-
-
Constructor Details
-
FrameConf
public FrameConf()
-
-
Method Details
-
isSimpleMode
public boolean isSimpleMode() -
isRedrawMode
public boolean isRedrawMode() -
initialize
public void initialize(int rENDER_WIDTH, int rENDER_HEIGHT, double rENDER_TARGET_FPS, double cAMERA_REC_TARGET_FPS, boolean aUTO_FRAME_OUTPUT_CAMERA_PLAY, java.lang.String rENDER_FOLDER, java.lang.String rENDER_FILE_NAME, boolean rENDER_SCREENSHOT_TIME, boolean rENDER_OUTPUT, GlobalConf.ScreenshotMode fRAME_MODE, GlobalConf.ImageFormat fRAME_FORMAT, float fRAME_QUALITY, CameraKeyframeManager.PathType kF_PATH_TYPE_POSITION, CameraKeyframeManager.PathType kF_PATH_TYPE_ORIENTATION) -
notify
-