com.supermap.ar.areffect.record

Class EffectViewRecorder

  • java.lang.Object
    • com.supermap.ar.areffect.record.EffectViewRecorder
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class and Description
      static class  EffectViewRecorder.Builder
      Recorder constructor
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      static EffectViewRecorder.Builder builder(EffectView effectView)
      Create Builder
      java.lang.String getFolderPath()
      Gets the folder path
      RecorderStatus getRecorderStatus()
      Gets recorder status
      java.lang.String getRecordName() 
      boolean linearCalculate(java.lang.String sourceCsvFilePath, java.lang.String destCsvFilePath)
      Use linear interpolation to optimize the parameters of CSV files and generate new CSV files
      void onUpdate()
      Frame-updating listener
      void prepare()
      Prepare to record The function will generate a new video name according to the time stamp for each preparation After executing start -> stop next time, saves the records as the name
      void reset()
      Re-set Turns the status from PREPARED or RECORDING to INITIAL directly
      void setRecordName(java.lang.String videoName)
      Sets the prefix of the video name
      void start()
      Starts recording.
      void stop()
      Stop recording Status turns into PREPARED
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • onUpdate

        public void onUpdate()
        Frame-updating listener
      • prepare

        public void prepare()
        Prepare to record
             The function will generate a new video name according to the time stamp for each preparation
             After executing start -> stop next time, saves the records as the name
         
      • start

        public void start()
        Starts recording.

        Status turns into RECORDING

             Starts to record videos
             Notes: 
             If the path of video folder hasn't been set, returns false
             If the path of video folder has been set but the folder name not set
         
      • stop

        public void stop()
        Stop recording

        Status turns into PREPARED

      • reset

        public void reset()
        Re-set

        Turns the status from PREPARED or RECORDING to INITIAL directly

      • setRecordName

        public void setRecordName(java.lang.String videoName)
        Sets the prefix of the video name
        Parameters:
        videoName - video name
                Execution order is before prepare()
                After setting setVideoName every time, you can prepare()=>start()=>stop() to record a new video
         
      • getFolderPath

        public java.lang.String getFolderPath()
        Gets the folder path
        Returns:
        The folder path.
      • linearCalculate

        public boolean linearCalculate(java.lang.String sourceCsvFilePath,
                                       java.lang.String destCsvFilePath)
        Use linear interpolation to optimize the parameters of CSV files and generate new CSV files
        Parameters:
        sourceCsvFilePath - CSV Specifies the absolute path of the source file
        destCsvFilePath - Specifies the absolute path of the CSV target file
        Returns:
        Status value
      • getRecordName

        public java.lang.String getRecordName()