OMC::CopyOptions Class Reference

Detailed Description

Copy Options used in copy methods within OMC::Clipboard.

Public Member Functions

 CopyOptions (const QVariant &options)
 Generate a Copy_Option object from an argument object. More...
 

Public Attributes

bool add_modelling_dir
 Set to true to copy the modeling directory into the template.
 
bool add_scan_files
 Set to true to copy the scan files associated to the selected drawings.
 
bool include_default_camera_name
 Use this when you want the camera in a template to be set as default camera in the target scene. More...
 
int start_frame_src
 When copying local content, this functions controls the start frame of the content that will be copied to clipboard. More...
 
int num_frame_src
 When copying local content, this functions controls the number of frames of the content that will be copied to clipboard. More...
 
int numFrameSrc
 

Constructor & Destructor Documentation

◆ CopyOptions()

OMC::CopyOptions::CopyOptions ( const QVariant &  options)

Generate a Copy_Option object from an argument object.

Generates a Copy_Option object from an object argument in the form: { "add_modelling_dir" : True, "addScanFiles" : True, "include_default_camera_name" : True }

Member Data Documentation

◆ include_default_camera_name

bool OMC::CopyOptions::include_default_camera_name

Use this when you want the camera in a template to be set as default camera in the target scene.

Note
This is not necessary if there is no camera assigned in the target scene, as the incoming camera will automatically be set as default camera.

◆ num_frame_src

int OMC::CopyOptions::num_frame_src

When copying local content, this functions controls the number of frames of the content that will be copied to clipboard.

The default number of frames is 0, which effectively turn off this override feature and make it copy the entire content length. Set this length to anything >0 to override the number of frames pasted.

◆ start_frame_src

int OMC::CopyOptions::start_frame_src

When copying local content, this functions controls the start frame of the content that will be copied to clipboard.

The default start frame is 1, which means that it will be copying starting from the first frame of the scene. Set this to a value >= 1 to specific the frame to use as a starting frame.

Inheritance diagram for OMC::CopyOptions:
Collaboration diagram for OMC::CopyOptions: