Package camera3D.generators
Class Monoscopic360Generator
java.lang.Object
camera3D.generators.Generator
camera3D.generators.Monoscopic360Generator
Monoscopic 360 Video Generator
-
Nested Class Summary
Nested classes/interfaces inherited from class camera3D.generators.Generator
Generator.PixelCopyTask
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cleanup
(processing.core.PApplet parent) This is called after the last call to the user's draw method and before the user's postDraw method.void
completedDraw
(int frameNum, processing.core.PApplet parent) This is called once after each call to the user's draw method.void
generateCompositeFrame
(int[] pixelDest, int[][] pixelStorage) Combine the component frames into one composite frame.int
The number of components in the composite image, ie, the number of times to call the draw method.getComponentFrameName
(int frameNum) Give each component a name, such as "left" and "right" for anaglyph images.void
prepareForDraw
(int frameNum, processing.core.PApplet parent) This is called once before each call to the user's draw method.protected void
Perform renderer recalculations due to camera config change.setNearFarLimits
(float near, float far) setOutputSizeAndLocation
(int size, String saveLocation) setOutputWidthHeightAndLocation
(int width, int height, String saveLocation) setPanelExplainPlanLocation
(String panelExplainPlanLocation) setPanelXYSteps
(int panelXSteps, int panelYSteps) setThreadCount
(int threadCount) Methods inherited from class camera3D.generators.Generator
clip, clip, copyFrameNumber, executeTask, generateCompositeFrameAndSaveComponents, initExecutor, insertFrame, notifyCameraConfigChange
-
Constructor Details
-
Monoscopic360Generator
public Monoscopic360Generator(int width, int height)
-
-
Method Details
-
setOutputSizeAndLocation
-
setOutputWidthHeightAndLocation
public Monoscopic360Generator setOutputWidthHeightAndLocation(int width, int height, String saveLocation) -
setPanelXYSteps
-
setNearFarLimits
-
setPanelExplainPlanLocation
-
skipDisplayingCompositeFrame
-
setThreadCount
-
getComponentCount
public int getComponentCount()Description copied from class:Generator
The number of components in the composite image, ie, the number of times to call the draw method.- Specified by:
getComponentCount
in classGenerator
- Returns:
- int
-
getComponentFrameName
Description copied from class:Generator
Give each component a name, such as "left" and "right" for anaglyph images.- Specified by:
getComponentFrameName
in classGenerator
- Returns:
-
recalculateCameraSettings
protected void recalculateCameraSettings()Description copied from class:Generator
Perform renderer recalculations due to camera config change.- Specified by:
recalculateCameraSettings
in classGenerator
-
prepareForDraw
public void prepareForDraw(int frameNum, processing.core.PApplet parent) Description copied from class:Generator
This is called once before each call to the user's draw method. Typically the generators need to move the camera around or change some settings.- Specified by:
prepareForDraw
in classGenerator
-
generateCompositeFrame
public void generateCompositeFrame(int[] pixelDest, int[][] pixelStorage) Description copied from class:Generator
Combine the component frames into one composite frame.- Specified by:
generateCompositeFrame
in classGenerator
-
completedDraw
public void completedDraw(int frameNum, processing.core.PApplet parent) Description copied from class:Generator
This is called once after each call to the user's draw method. Typically this is not needed.- Specified by:
completedDraw
in classGenerator
-
cleanup
public void cleanup(processing.core.PApplet parent) Description copied from class:Generator
This is called after the last call to the user's draw method and before the user's postDraw method. This should put the camera back so other libraries like ControlP5 can function correctly.
-