com.supermap.ar.areffect.record
Class AREffectViewRecorder
- java.lang.Object
-
- com.supermap.ar.areffect.record.EffectViewRecorder
-
- com.supermap.ar.areffect.record.AREffectViewRecorder
-
- All Implemented Interfaces:
- EffectView.OnUpdateListener
public class AREffectViewRecorder extends EffectViewRecorder implements EffectView.OnUpdateListener
Effects view recorderRecord AR view and record real-time attitude data
SampleCode: ... private Button button; private boolean recordStatus = false; ... EffectViewRecorder recorder = AREffectViewRecorder .builder(efView) .setFolderPath(SDCARD + "/00recorder") .build(); String fileName = "TestFile"; recorder.setVideoName(fileName + count); recorder.prepare(); button = findViewById(R.id.record_ctrl_btn); button.setOnClickListener(new View.OnClickListener() {
- Since:
- 10.1.2
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static class
AREffectViewRecorder.Builder
Recorder constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static AREffectViewRecorder.Builder
builder(AREffectView arView)
creat Buildervoid
onUpdate()
Use linear interpolation to optimize the parameters of CSV files and generate new CSV filesvoid
prepare()
Recording preparation Each preparation action will generate a new video name based on the timestamp, After the start->stop command is executed next time, the recording result is saved to the same name.void
reset()
reset Enter INITIAL directly in PREPARED or RECORDING statevoid
start()
Start recording State entered RECORDING Start recording the video Note: If the video folder path is not set, return false If the video folder path is set, the file name is not setvoid
stop()
stop Status Enter the ready state.-
Methods inherited from class com.supermap.ar.areffect.record.EffectViewRecorder
builder, getFolderPath, getRecorderStatus, getRecordName, linearCalculate, setRecordName
-
-
-
-
Method Detail
-
onUpdate
public void onUpdate()
Use linear interpolation to optimize the parameters of CSV files and generate new CSV files- Overrides:
onUpdate
in classEffectViewRecorder
- Parameters:
sourceCsvFilePath
- CSV Specifies the absolute path of the source filedestCsvFilePath
- Specifies the absolute path of the CSV target file
-
prepare
public void prepare()
Recording preparation Each preparation action will generate a new video name based on the timestamp, After the start->stop command is executed next time, the recording result is saved to the same name.- Overrides:
prepare
in classEffectViewRecorder
-
start
public void start()
Start recording State entered RECORDING Start recording the video Note: If the video folder path is not set, return false If the video folder path is set, the file name is not set- Overrides:
start
in classEffectViewRecorder
-
stop
public void stop()
stopStatus Enter the ready state. PREPARED
- Overrides:
stop
in classEffectViewRecorder
-
reset
public void reset()
resetEnter INITIAL directly in PREPARED or RECORDING state
- Overrides:
reset
in classEffectViewRecorder
-
builder
public static AREffectViewRecorder.Builder builder(AREffectView arView)
creat Builder- Parameters:
arView
-- Returns:
-
-