thetaf library Null safety
Flutter library for RICOH THETA cameras requires use of the theta package
Classes
- DeleteAllFilesButton
- Deletes all media on the camera, both images and videos. Can not be undone.
- DeleteAllImagesButton
- Bug possible. Deletes all files, video and images, not just images. Can not be undone.
- DeleteAllVideosButton
- Deletes all videos on the camera, does not delete images. Can not be undone.
- DisablePowerOffButton
- Camera will not power down automatically if this option is set.
- DisableSleepDelayButton
- Camera will not go to sleep if this option is set.
- DisableVideoStitchingButton Z1
- If this option is used, video is recorded in dual fisheye (two hemispheres). Only for Z1.
- DownloadButton
- Download the image.
- EnablePowerOffButton
- This option will set the camera to power off automatically.
- EnablePresetFaceButton SC2
- Sets camera to automatically detect and center faces in the image.
- EnablePresetLensbylensexposureButton SC2
- Control the two lenses of the THETA camera independently. Good for situations when lighting varies significantly, such as inside a car.
- EnablePresetNightviewButton SC2
- Utilizes dynamic range compensation and noise reduction to produce good night time images.
- EnablePresetRoomButton SC2
- Only available for SC2B model. Good for indoor shooting when there is a large variation in brightness between indoor and outdoors.
- EnableSleepDelayButton
- Camera will enter sleep mode.
- EnableVideoStitchingButton Z1
- If this option is used, video is recorded in equirectagular format.
- ExposureProgramButton
- Sets which camera settings can be adjusted: [...]
- GetDateTimeZoneButton
- Gets current Date and Time zone. [...]
- GetRemainingPicsButton
- Gets an estimated remaining number of shots for the current shooting settings.
- GetRemainingSpaceButton
- Gets the remaining usable storage space on the camera in bytes.
- GetRemainingVideoButton
- Gets the estimated remaining shooting time in seconds for the current video shooting settings.
- HideThumbButton
- Hide thumbnails.
- InfoButton
- Gets info which includes model, firmware version, API version, serial number, uptime, and more.
- InfoButtonSimple
- Gets info which includes model, firmware version, API version, serial number, uptime, and more.
- List5FilesButton
- Lists the 5 most recent files on your THETA.
- List5VideosButton
- Lists the 5 most recent videos on your THETA.
- LivePreview Z1 Response
- Shows live preview motion jpeg from the RICOH THETA camera Live preview is a stream and is managed by a StreamController. You must pass the StreamController. [...]
- ResetButton
- Reset all settings and capture settings. Can not be undone. The camera will be restart automatically.
- ResponseWindow Response
- Text response window with selectable text. Although there is no syntax highlighting or line numbers the backgroundColor of the response window can be set as well as the textColor and fontSize To get syntax highlighting and line numbering, use ThetaSyntaxWindow. ThetaSyntaxWindow does not have selectable text. If you want to show thumbnails, use ThumbWindow.
- Sc2GetOptionsButton SC2
- Displays all options available for the SC2.
- Sc2GetOptionsButtonSimple SC2
- Displays all options available for the SC2.
- SetAperture0Button Z1
- Exposure program (exposureProgram) must be set to Manual or Aperture Priority. Possible settings are 0 (auto), 2.1, 3.5, 5.6
- SetAperture2dot1Button Z1
- Exposure program (exposureProgram) must be set to Manual or Aperture Priority. Possible settings are 0 (auto), 2.1, 3.5, 5.6
- SetAperture3dot5Button Z1
- Exposure program (exposureProgram) must be set to Manual or Aperture Priority. Possible settings are 0 (auto), 2.1, 3.5, 5.6
- SetAperture5dot6Button Z1
- Exposure program (exposureProgram) must be set to Manual or Aperture Priority. Possible settings are 0 (auto), 2.1, 3.5, 5.6
- SetAuthenticationDigestButton Z1
- For setting authentication when connecting to a smartphone. _networkType must be in client mode.
- SetAuthenticationNoneButton Z1
- For setting authentication when connecting to a smartphone. _networkType must be in client mode.
- SetBitrateImageAutoButton Z1
- You can set _bitrate to Fine or Normal (shooting mode must be set to video), or to Auto (shooting mode must be set to image or live streaming.
- SetBitrateVideoFineButton Z1
- You can set _bitrate to Fine or Normal (shooting mode must be set to video), or to Auto (shooting mode must be set to image or live streaming.
- SetBitrateVideoNormalButton Z1
- You can set _bitrate to Fine or Normal (shooting mode must be set to video), or to Auto (shooting mode must be set to image or live streaming.
- SetBluetoothPowerOffButton Z1
- Can set bluetooth power to ON or OFF. Only available for models Z1, not SC2 or SC2B.
- SetBluetoothPowerOnButton Z1
- Can set bluetooth power to ON or OFF. Only available for models Z1, not SC2 or SC2B.
- SetColorTemp2500Button
- Color Temperature (CT) or White Balance (WB). The higher the rating (expressed in K for Kelvin), the whiter the light will be. Can be set from 2500 to 10,000, in 100-Kelvin units.
- SetColorTemp5000Button
- Color Temperature (CT) or White Balance (WB). The higher the rating (expressed in K for Kelvin), the whiter the light will be. Can be set from 2500 to 10,000, in 100-Kelvin units.
- SetColorTemp7500Button
- Color Temperature (CT) or White Balance (WB). The higher the rating (expressed in K for Kelvin), the whiter the light will be. Can be set from 2500 to 10,000, in 100-Kelvin units.
- SetColorTemp10000Button
- Color Temperature (CT) or White Balance (WB). The higher the rating (expressed in K for Kelvin), the whiter the light will be. Can be set from 2500 to 10,000, in 100-Kelvin units.
- SetExposureCompensation0Button
- EV is Exposure Compensation. It works in automatic mode. This button sets EV to 0.
- SetExposureCompensation1Button
- EV is Exposure Compensation. It works in automatic mode. This button sets EV to 1.
- SetExposureCompensation2Button
- EV is Exposure Compensation. It works in automatic mode. This button sets EV to 2.
- SetExposureCompensationneg1Button
- EV is Exposure Compensation. It works in automatic mode. This button sets EV to -1.
- SetExposureCompensationneg2Button
- EV is Exposure Compensation. It works in automatic mode. This button sets EV to -2.
- SetFilterDrcompButton
- Set _filter option to control camera settings. DR Compensation reduces blown out highlights.
- SetFilterHdrButton
- Set _filter option to control camera settings. HDR reduces blown out highlights.
- SetFilterHhhdrButton Z1
- Camera shake and subject shake are reduced for images that are shot handheld.
- SetFilterNoiseReductionButton
- Suitable for high definition shooting in dark conditions. ISO is automatically set to low sensitivity.
- SetFilterOffButton
- Not using any _filter options.
- SetFunctionMySettingButton
- Set shooting setting to My Setting. Setting at the same time as exposureDelay will result in an error.
- SetFunctionNormalButton
- Set shooting setting to normal. Setting at the same time as exposureDelay will result in an error.
- SetFunctionSelfTimerButton
- Set shooting setting to self-timer. Setting at the same time as exposureDelay will result in an error.
- SetIso80Button
- exposureProgram must be set to Manual or ISO Priority. Possible iso settings for Z1 are: 80, 100, 125, 160, 200, 250, 320, 400, 500, 640, 800, 1000, 1250, 1600, 2000, 2500, 3200, 4000, 5000, 6400. Possible iso settings for SC2 are different from Z1.
- SetIso200Button
- exposureProgram must be set to Manual or ISO Priority. Possible iso settings for Z1 are: 80, 100, 125, 160, 200, 250, 320, 400, 500, 640, 800, 1000, 1250, 1600, 2000, 2500, 3200, 4000, 5000, 6400. Possible iso settings for SC2 are different from Z1.
- SetIso640Button
- exposureProgram must be set to Manual or ISO Priority. Possible iso settings for Z1 are: 80, 100, 125, 160, 200, 250, 320, 400, 500, 640, 800, 1000, 1250, 1600, 2000, 2500, 3200, 4000, 5000, 6400. Possible iso settings for SC2 are different from Z1.
- SetIso2000Button
- exposureProgram must be set to Manual or ISO Priority. Possible iso settings for Z1 are: 80, 100, 125, 160, 200, 250, 320, 400, 500, 640, 800, 1000, 1250, 1600, 2000, 2500, 3200, 4000, 5000, 6400. Possible iso settings for SC2 are different from Z1.
- SetIso6400Button
- exposureProgram must be set to Manual or ISO Priority. Possible iso settings for Z1 are: 80, 100, 125, 160, 200, 250, 320, 400, 500, 640, 800, 1000, 1250, 1600, 2000, 2500, 3200, 4000, 5000, 6400. Possible iso settings for SC2 are different from Z1.
- SetModeImageButton
- Sets THETA to image mode to take pictures.
- SetModeVideoButton
- Sets THETA to video mode to record videos.
- SetShutterVolume5Button
- Shutter volume can be set from 0-100.
- SetShutterVolume20Button
- Shutter volume can be set from 0-100.
- SetShutterVolume50Button
- Shutter volume can be set from 0-100.
- SetShutterVolume100Button
- Shutter volume can be set from 0-100.
- SetShutterVolumeOffButton
- Shutter volume can be set from 0-100.
- SetTimeShiftFirstFrontButton
- Set the shooting order for Time shift shooting. Can set the firstShooting to “front” which means shooting from rear side (side with the OLED monitor) after shooting from front side (side with THETA logo).
- SetTimeShiftFirstIntervalButton
- Set the interval for the first shot for Time shift shooting. Can also set the interval for the second shot independently.
- SetWhiteBalanceAutoButton
- Set White Balance to auto.
- SetWhiteBalanceCloudyButton
- Set White Balance to cloudy-daylight.
- SetWhiteBalanceColorTempButton
- Set White Balance to _colorTemperature. Color Temperature (CT) settings are specified by the _colorTemperature option for S and SC.
- SetWhiteBalanceDaylightButton
- Set White Balance to daylight.
- SetWhiteBalanceFluorescent1Button
- Set White Balance to _dayLightFluorescent which is called Fluorescent light 1 (daylight).
- SetWhiteBalanceFluorescent2Button
- Set White Balance to _dayLightFluorescent which is called Fluorescent light 2 (natural white).
- SetWhiteBalanceFluorescent3Button
- Set White Balance to fluorescent which is called Fluorescent light 3 (white).
- SetWhiteBalanceFluorescent4Button
- Set White Balance to _bulbFluorescent which is called Fluorescent light 4 (light bulb color).
- SetWhiteBalanceIncandescent1Button
- Set White Balance to Incandescent light 1.
- SetWhiteBalanceIncandescent2Button
- Set White Balance to _warmWhiteFluorescent which is called Incandescent light 2.
- SetWhiteBalanceShadeButton
- Set White Balance to shade.
- SetWhiteBalanceUnderwaterButton
- Based on Oppkey testing, DOES NOT WORK with Z1. Set White Balance _underwater.
- ShowThumbButton
- Show thumbnails
- StartCaptureButton
- start interval shooting, interval composite shooting, multi bracket shooting, time shift shooting If no mode parameter is set, the camera will use interval shooting. [...]
- StartVideoCaptureButton
- If the camera is in video mode, this will start recording a video. Use with StopVideoCaptureButton to stop the video. [...]
- StateButton
- Get the state of camera. Includes API version, batteryLevel, _latestFileUrl and more.
- StateButtonSimple
- Get the state of camera. Includes API version, batteryLevel, _latestFileUrl and more.
- StopVideoCaptureButton
- Ends video recording.
- TakePictureButton
- Take a picture!
- ThetaSyntaxWindow Response
- shows a window with syntax highlighting and line numbering. It is an Expanded Widget. You can specify the space it takes up with flex. [...]
- ThetaWindow
- root window for all thetaf widgets all other widgets must be wrapped inside a ThetaWindow widget. import 'package:thetaf/thetaf.dart'; [...]
- ThumbWindow Response
- displays a list of thumbs in grid view with 2 thumbs across on the horizontal axis. Each thumbnail will try to take up 500px if space is available. It can display any number of thumbs that are saved in thumbData which is handled by the Provider package for state management. There are two other button that you can use to switch between text and thumbnail displays. [...]
- Z1GetOptionsButton Z1
- Displays all options available for the Z1.
- Z1GetOptionsButtonSimple Z1
- Displays all options available for the Z1.
Functions
-
takePictureReady(
BuildContext context) → Future< void> - takes picture and then sets showThumbWindow to true after camera is ready. While the camera is processing the picture, shows the status as a string. The Z1 takes after 4 seconds to be ready for a picture. The SC2 make take more than 8 seconds. The delay is due to internal stitching times.
-
takePictureThumb(
BuildContext context) → Future< void> - use with ThumbWindow to take a picture and then display the thumbnails. ThumbWindow combines a ResponseWindow with a window that will display the thumbnails that are on the camera. This function will first wait for the current picture to be processed and then will get the last 5 thumbs, including the thumb for the picture you just took. It will display the status of the current image processing after the shutter is triggered as text messages, then pull the thumb bytes down from the camera and then send the list of 5 thumbs to ThumbWindow