Class TestObjet
- Direct Known Subclasses:
AnneauDeSpheresQuiTournent
,CubesQuiTombent
,Scene1
,TestAnneau
,TestBezierN
,TestCameraEnMouvement
,TestCameraEnMouvementCylindre
,TestCameraEnMouvementRandomTriangles
,TestCoeur1
,TestCParamBSpline
,TestEarth2
,TestGDXBSpline1
,TestObjetStub
,TestObjetSub
,TestPH
,TestPH1
,TestSomething3D
,TestSpheres
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Camera
protected ITexture
protected String
protected ArrayList<TestInstance.Parameter>
static final int
static final int
protected int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static Resolution
static Resolution
static final ArrayList<TestInstance.Parameter>
static final int
static final int
static final int
static final int
static Resolution
protected Scene
static Resolution
static Resolution
static Resolution
protected ZBufferImpl
-
Constructor Summary
ConstructorsConstructorDescriptionThe TestObjet class represents an object used for testing purposes.TestObjet
(boolean binit) TestObjet
(ArrayList<TestInstance.Parameter> params) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAudioFile
(File audio) abstract void
applyTemplate
(String template, Properties properties) camera()
void
void
boolean
boolean
D3()
void
protected void
ecrireImage
(RenderedImage ri, String type, File fichier) void
exportFrame
(String format, String filename) abstract void
finit()
int
frame()
getDir()
getFile()
int
getFps()
int
boolean
getGenerate
(int GENERATE) int
int
getO()
int
getResx()
int
getResy()
getZ()
Get the ZBuffer implementation used by the class.abstract void
ginit()
img()
void
boolean
void
isometrique
(boolean isISO) void
isometrique
(boolean isISO, boolean noZoom) boolean
isPause()
boolean
boolean
boolean
loop()
void
loop
(boolean isLooping) boolean
boolean
void
onMaxFrame
(int maxFramesEvent) void
onTextureEnds
(ITexture texture, int texture_event) void
paintingAct
(Representable representable, PaintingAct pa) void
PAUSE()
void
Publishes the test results if the publish flag is set to true.void
publishResult
(boolean publish) Sets the publish flag of the object.void
void
reportPause
(boolean phase) void
void
reportSuccess
(File film) void
run()
Runs the animation rendering process.void
saveBMood
(boolean b) scene()
Returns the scene associated with this object.void
Sets the scene associated with this object.void
set3D
(boolean b3D) void
setAviOpen
(boolean aviOpen) void
setCouleurFond
(ITexture tColor) void
setDimension
(Resolution dimension) boolean
setDynParameter
(TestInstance.Parameter parameter) void
setFileExtension
(String ext) void
setFilename
(String fn) void
setFps
(int fps) void
setGenerate
(int generate) void
setMaxFrames
(int maxFrames) void
void
void
setPublish
(boolean publish) void
setResolution
(int x, int y) void
setResx
(int resx) Deprecated.void
setResy
(int resy) Deprecated.void
setStructure
(boolean structure) void
setThreadGLafter
(Thread thread) void
setZ
(ZBufferImpl z) void
void
STOP()
abstract void
Represents a test scene in the TestObjet class.void
void
unterminable
(boolean b) Sets the unterminable flag of the object.v2main()
void
void
protected ZBufferImpl
z()
Get the ZBuffer implementation used by the class.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface one.empty3.library.core.testing.Test
afterRender
-
Field Details
-
GENERATE_NOTHING
public static final int GENERATE_NOTHING- See Also:
-
GENERATE_IMAGE
public static final int GENERATE_IMAGE- See Also:
-
GENERATE_MODEL
public static final int GENERATE_MODEL- See Also:
-
GENERATE_OPENGL
public static final int GENERATE_OPENGL- See Also:
-
GENERATE_MOVIE
public static final int GENERATE_MOVIE- See Also:
-
GENERATE_OBJ
public static final int GENERATE_OBJ- See Also:
-
GENERATE_NO_IMAGE_FILE_WRITING
public static final int GENERATE_NO_IMAGE_FILE_WRITING- See Also:
-
initParams
-
ON_TEXTURE_ENDS_STOP
public static final int ON_TEXTURE_ENDS_STOP- See Also:
-
ON_TEXTURE_ENDS_LOOP_TEXTURE
public static final int ON_TEXTURE_ENDS_LOOP_TEXTURE- See Also:
-
ON_MAX_FRAMES_STOP
public static final int ON_MAX_FRAMES_STOP- See Also:
-
ON_MAX_FRAMES_CONTINUE
public static final int ON_MAX_FRAMES_CONTINUE- See Also:
-
ENCODER_MONTE
public static final int ENCODER_MONTE- See Also:
-
ENCODER_HUMBLE
public static final int ENCODER_HUMBLE- See Also:
-
PAL
-
HD720
-
HD1080
-
UHD
-
VGA
-
VGAZIZI
-
scene
-
description
-
c
-
frame
protected int frame -
dynParams
-
couleurFond
-
z
-
filmName
-
sousdossier
-
-
Constructor Details
-
TestObjet
public TestObjet()The TestObjet class represents an object used for testing purposes. -
TestObjet
-
TestObjet
public TestObjet(boolean binit)
-
-
Method Details
-
z
Get the ZBuffer implementation used by the class.- Returns:
- The ZBuffer implementation used by the class
-
setProperties
-
getDataWriter
-
getIdxFilm
public int getIdxFilm() -
getSubfolder
-
setResolution
public void setResolution(int x, int y) -
img
-
startNewMovie
public void startNewMovie() -
isAviOpen
public boolean isAviOpen() -
setAviOpen
public void setAviOpen(boolean aviOpen) -
getGenerate
public boolean getGenerate(int GENERATE) -
getO
-
afterRenderFrame
public abstract void afterRenderFrame() -
applyTemplate
-
camera
-
camera
-
D3
public boolean D3() -
description
-
directory
-
ecrireImage
-
exportFrame
- Throws:
IOException
-
finit
- Throws:
Exception
-
frame
public int frame() -
getFile
-
getFilename
-
setFilename
-
getGenerate
public int getGenerate() -
setGenerate
public void setGenerate(int generate) -
getInitParams
- Specified by:
getInitParams
in interfaceTest
-
getMaxFrames
public int getMaxFrames() -
setMaxFrames
public void setMaxFrames(int maxFrames) -
getResx
public int getResx() -
setResx
Deprecated. -
getResy
public int getResy() -
setResy
Deprecated. -
ginit
public abstract void ginit() -
isometrique
public void isometrique(boolean isISO) -
isometrique
public void isometrique(boolean isISO, boolean noZoom) -
isPause
public boolean isPause() -
isPauseActive
public boolean isPauseActive() -
isStructure
public boolean isStructure() -
setStructure
public void setStructure(boolean structure) -
loop
public boolean loop() -
loop
public void loop(boolean isLooping) -
nextFrame
public boolean nextFrame() -
nextFrame2UnknownDiplicate
public boolean nextFrame2UnknownDiplicate() -
PAUSE
public void PAUSE() -
publishResult
public void publishResult()Publishes the test results if the publish flag is set to true.This method creates a new thread to publish the test results by calling the
ShowTestResult
class, passing in the necessary parameters. The publishing process includes setting the image container, the test object, and starting the thread for execution.This method does not return any value.
Note: The publish flag needs to be set to true in order for the test results to be published.
- Specified by:
publishResult
in interfaceTest
-
setPublish
public void setPublish(boolean publish) -
publishResult
public void publishResult(boolean publish) Sets the publish flag of the object.- Parameters:
publish
- The boolean flag indicating if the test results should be published sets to false for a console mode or true for GUI process controls.
-
reportException
-
reportPause
public void reportPause(boolean phase) -
reportStop
public void reportStop() -
reportSuccess
-
copyResources
public boolean copyResources() -
addAudioFile
-
initCompiler
public void initCompiler() -
run
public void run()Runs the animation rendering process.This method initializes the rendering environment, generates images and models, saves them to files, and performs post-rendering actions such as publishing and generating movies. It also handles pausing, frame advancement, audio synchronization, and error reporting.
- Specified by:
run
in interfaceRunnable
- Specified by:
run
in interfaceTest
- Throws:
RuntimeException
- if an I/O error occurs while saving files
-
saveBMood
public void saveBMood(boolean b) -
scene
Returns the scene associated with this object. -
paintingAct
-
closeView
public void closeView() -
scene
Sets the scene associated with this object.- Parameters:
load
- The scene to be set
-
set3D
public void set3D(boolean b3D) -
setCouleurFond
-
setDynParameter
-
setFileExtension
-
STOP
public void STOP() -
testScene
Represents a test scene in the TestObjet class.This abstract method should be implemented by subclasses to define the specific test scene logic. It is responsible for performing all the necessary steps required for the test, such as initializing the object, setting up parameters, generating images or models, and handling other specific operations as needed.
This method can throw an Exception if any error occurs during the test scene execution.
-
testScene
-
writeOnPictureAfterZ
-
writeOnPictureBeforeZ
-
getFolder
-
unterminable
public void unterminable(boolean b) Sets the unterminable flag of the object.- Parameters:
b
- the boolean flag indicating if the object is unterminable
-
getZ
Get the ZBuffer implementation used by the class. -
onTextureEnds
- Specified by:
onTextureEnds
in interfaceTest
-
onMaxFrame
public void onMaxFrame(int maxFramesEvent) - Specified by:
onMaxFrame
in interfaceTest
-
getInstance
- Throws:
ClassNotFoundException
-
getDimension
-
setDimension
-
setName
-
v2main
-
getWrittenFile
-
getFps
public int getFps() -
setFps
public void setFps(int fps) -
setZ
-
getDir
-
setThreadGLafter
-