Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
tesseract_environment::ChangeLinkVisibilityCommand Class Reference

#include <change_link_visibility_command.h>

Inheritance diagram for tesseract_environment::ChangeLinkVisibilityCommand:
Inheritance graph
[legend]

Public Types

using ConstPtr = std::shared_ptr< const ChangeLinkVisibilityCommand >
 
using Ptr = std::shared_ptr< ChangeLinkVisibilityCommand >
 
- Public Types inherited from tesseract_environment::Command
using ConstPtr = std::shared_ptr< const Command >
 
using Ptr = std::shared_ptr< Command >
 

Public Member Functions

 ChangeLinkVisibilityCommand ()
 
 ChangeLinkVisibilityCommand (std::string link_name, bool enabled)
 Set a links visibility. More...
 
bool getEnabled () const
 
const std::string & getLinkName () const
 
bool operator!= (const ChangeLinkVisibilityCommand &rhs) const
 
bool operator== (const ChangeLinkVisibilityCommand &rhs) const
 
- Public Member Functions inherited from tesseract_environment::Command
 Command (Command &&)=default
 
 Command (CommandType type=CommandType::UNINITIALIZED)
 
 Command (const Command &)=default
 
CommandType getType () const
 
bool operator!= (const Command &rhs) const
 
Commandoperator= (Command &&)=default
 
Commandoperator= (const Command &)=default
 
bool operator== (const Command &rhs) const
 
virtual ~Command ()=default
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

bool enabled_ { false }
 
std::string link_name_
 

Friends

class boost::serialization::access
 
struct tesseract_common::Serialization
 

Detailed Description

Definition at line 45 of file change_link_visibility_command.h.

Member Typedef Documentation

◆ ConstPtr

Definition at line 49 of file change_link_visibility_command.h.

◆ Ptr

Definition at line 48 of file change_link_visibility_command.h.

Constructor & Destructor Documentation

◆ ChangeLinkVisibilityCommand() [1/2]

tesseract_environment::ChangeLinkVisibilityCommand::ChangeLinkVisibilityCommand ( )

Definition at line 38 of file change_link_visibility_command.cpp.

◆ ChangeLinkVisibilityCommand() [2/2]

tesseract_environment::ChangeLinkVisibilityCommand::ChangeLinkVisibilityCommand ( std::string  link_name,
bool  enabled 
)

Set a links visibility.

Parameters
nameThe name of the link
visibilityTrue if should be visible, otherwise false

Definition at line 40 of file change_link_visibility_command.cpp.

Member Function Documentation

◆ getEnabled()

bool tesseract_environment::ChangeLinkVisibilityCommand::getEnabled ( ) const

Definition at line 46 of file change_link_visibility_command.cpp.

◆ getLinkName()

const std::string & tesseract_environment::ChangeLinkVisibilityCommand::getLinkName ( ) const

Definition at line 45 of file change_link_visibility_command.cpp.

◆ operator!=()

bool tesseract_environment::ChangeLinkVisibilityCommand::operator!= ( const ChangeLinkVisibilityCommand rhs) const

Definition at line 56 of file change_link_visibility_command.cpp.

◆ operator==()

bool tesseract_environment::ChangeLinkVisibilityCommand::operator== ( const ChangeLinkVisibilityCommand rhs) const

Definition at line 48 of file change_link_visibility_command.cpp.

◆ serialize()

template<class Archive >
void tesseract_environment::ChangeLinkVisibilityCommand::serialize ( Archive &  ar,
const unsigned int  version 
)
private

Definition at line 59 of file change_link_visibility_command.cpp.

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 70 of file change_link_visibility_command.h.

◆ tesseract_common::Serialization

friend struct tesseract_common::Serialization
friend

Definition at line 71 of file change_link_visibility_command.h.

Member Data Documentation

◆ enabled_

bool tesseract_environment::ChangeLinkVisibilityCommand::enabled_ { false }
private

Definition at line 68 of file change_link_visibility_command.h.

◆ link_name_

std::string tesseract_environment::ChangeLinkVisibilityCommand::link_name_
private

Definition at line 67 of file change_link_visibility_command.h.


The documentation for this class was generated from the following files:


tesseract_environment
Author(s): Levi Armstrong
autogenerated on Sun May 18 2025 03:02:21