Skip to content

shapeworks::Command

Inherited by shapeworks::AnalyzeCommandGroup, shapeworks::GroomCommandGroup, shapeworks::ImageCommand, shapeworks::MeshCommand, shapeworks::OptimizeCommandGroup, shapeworks::ParticleSystemCommand, shapeworks::ProjectCommandGroup, shapeworks::ShapeworksCommand

Public Functions

Name
virtual const std::string type()
const std::string name() const
const std::string usage() const
const std::string desc() const
std::vector< std::string > parse_args(const std::vector< std::string > & arguments)
parses the arguments for this command, saving them in the parser and returning the leftovers
int run(SharedCommandData & sharedData)
calls execute for this command using the parsed args, returning system exit value

Protected Functions

Name
virtual void buildParser()

Protected Attributes

Name
optparse::OptionParser parser

Public Functions Documentation

function type

inline virtual const std::string type()

Reimplemented by: shapeworks::ImageCommand::type, shapeworks::MeshCommand::type, shapeworks::OptimizeCommandGroup::type, shapeworks::GroomCommandGroup::type, shapeworks::AnalyzeCommandGroup::type, shapeworks::ProjectCommandGroup::type, shapeworks::ParticleSystemCommand::type, shapeworks::ShapeworksCommand::type

function name

inline const std::string name() const

function usage

inline const std::string usage() const

function desc

inline const std::string desc() const

function parse_args

std::vector< std::string > parse_args(
    const std::vector< std::string > & arguments
)

parses the arguments for this command, saving them in the parser and returning the leftovers

function run

int run(
    SharedCommandData & sharedData
)

calls execute for this command using the parsed args, returning system exit value

Protected Functions Documentation

function buildParser

virtual void buildParser()

Protected Attributes Documentation

variable parser

optparse::OptionParser parser;

Updated on 2024-03-17 at 12:58:44 -0600