ModelingCommandData Struct Reference

#include <operatingsystem.h>

Detailed Description

A helper object for SendModelingCommand().

Public Member Functions

 ModelingCommandData ()=default
 
 ~ModelingCommandData ()
 

Public Attributes

BaseDocumentdoc
 
BaseObjectop
 
BaseContainerbc
 
MODELINGCOMMANDMODE mode
 
MODELINGCOMMANDFLAGS flags
 
AtomArrayarr
 
AtomArrayresult
 

Constructor & Destructor Documentation

◆ ModelingCommandData()

ModelingCommandData ( )
default

Default constructor.

◆ ~ModelingCommandData()

Default destructor.

Member Data Documentation

◆ doc

The document for the operation. Should be set if possible.

Note
Must be set for MCOMMAND_MAKEEDITABLE, MCOMMAND_CURRENTSTATETOOBJECT and MCOMMAND_SPLINE_PROJECT.

◆ op

The input object. Use arr for multiple objects.

◆ bc

The modeling command container. Optional to set extra options.

◆ mode

The modeling command mode: MODELINGCOMMANDMODE.

◆ flags

The modeling command flags: MODELINGCOMMANDFLAGS.

◆ arr

AtomArray* arr

The input objects. If this is nullptr op is used. The contents of arr may be changed during the operation.
If SendModelingCommand() returns successfully, arr contains all the input objects that were changed, while result contains the array of newly created objects.

◆ result

AtomArray* result

The resulting object array for commands that create new objects.

Note
Not used if MODELINGCOMMANDFLAGS::CREATEUNDO is set in flags.