#include <opennurbs_compstat.h>

Public Member Functions

 ON_ComponentStatus ()=default
 
 ON_ComponentStatus (const ON_ComponentStatus &)=default
 
 ON_ComponentStatus (ON_ComponentState state)
 Constructs a status with the specified state set. More...
 
 ~ON_ComponentStatus ()=default
 
bool AllEqualStates (ON_ComponentStatus states_filter, ON_ComponentStatus comparand) const
 
unsigned int ClearRuntimeMark ()
 
unsigned int ClearStates (ON_ComponentStatus states_to_clear)
 If a state is set in states_to_clear, the same state is cleared in "this". More...
 
bool IsClear () const
 
bool IsDamaged () const
 
bool IsDeleted () const
 
bool IsHidden () const
 
bool IsHighlighted () const
 
bool IsLocked () const
 
bool IsSelected () const
 
bool IsSelectedPersistent () const
 
bool NoEqualStates (ON_ComponentStatus states_filter, ON_ComponentStatus comparand) const
 
bool operator!= (ON_ComponentStatus)
 
bool operator!= (const ON_ComponentStatus &) const
 
ON_ComponentStatusoperator= (const ON_ComponentStatus &)=default
 
bool operator== (ON_ComponentStatus)
 
bool operator== (const ON_ComponentStatus &) const
 
bool RuntimeMark () const
 
ON_ComponentState SelectedState () const
 
unsigned int SetDamagedState (bool bIsDamaged)
 
unsigned int SetDeletedState (bool bIsDeleted)
 
unsigned int SetHiddenState (bool bIsHidden)
 
unsigned int SetHighlightedState (bool bIsHighlighed)
 
unsigned int SetLockedState (bool bIsLocked)
 
unsigned int SetRuntimeMark (bool bRuntimeMark)
 
unsigned int SetRuntimeMark ()
 
unsigned int SetSelectedState (bool bSelectedState, bool bPersistent, bool bSynchronizeHighlight)
 
unsigned int SetSelectedState (ON_ComponentState selected_state, bool bSynchronizeHighlight)
 
unsigned int SetStates (ON_ComponentStatus states_to_set)
 If a state is set in states_to_set, the same state is set in "this". More...
 
unsigned int SetStatus (ON_ComponentStatus status_to_copy)
 Sets *this = status_to_copy and returns 1 if a state setting changed. More...
 
bool SomeEqualStates (ON_ComponentStatus states_filter, ON_ComponentStatus comparand) const
 

Static Public Attributes

static const ON_ComponentStatus AllSet
 
static const ON_ComponentStatus Damaged
 
static const ON_ComponentStatus Deleted
 
static const ON_ComponentStatus Hidden
 
static const ON_ComponentStatus Highlighted
 
static const ON_ComponentStatus Locked
 
static const ON_ComponentStatus NoneSet
 
static const ON_ComponentStatus Selected
 
static const ON_ComponentStatus SelectedPersistent
 

Friends

class ON_AggregateComponentStatus
 

Constructor & Destructor Documentation

◆ ON_ComponentStatus() [1/3]

ON_ComponentStatus::ON_ComponentStatus ( )
default

◆ ~ON_ComponentStatus()

ON_ComponentStatus::~ON_ComponentStatus ( )
default

◆ ON_ComponentStatus() [2/3]

ON_ComponentStatus::ON_ComponentStatus ( const ON_ComponentStatus )
default

◆ ON_ComponentStatus() [3/3]

ON_ComponentStatus::ON_ComponentStatus ( ON_ComponentState  state)

Constructs a status with the specified state set.

Member Function Documentation

◆ AllEqualStates()

bool ON_ComponentStatus::AllEqualStates ( ON_ComponentStatus  states_filter,
ON_ComponentStatus  comparand 
) const
Parameters
states_filter[in] If no states are specified, then false is returned.
comparand[in] If a state is set in states_filter, the corresponding state in "this" and comparand will be tested.
Returns
True if every tested state in "this" and comparand are identical.

For the purposes of this test, ON_ComponentState::Selected and ON_ComponentState::SelectedPersistent are considered equal.

◆ ClearRuntimeMark()

unsigned int ON_ComponentStatus::ClearRuntimeMark ( )

◆ ClearStates()

unsigned int ON_ComponentStatus::ClearStates ( ON_ComponentStatus  states_to_clear)

If a state is set in states_to_clear, the same state is cleared in "this".

Parameters
states_to_clear[in]
Returns
1 if status changed. 0 if status did not change.

The runtime mark setting cannot be changed using ClearStates().

◆ IsClear()

bool ON_ComponentStatus::IsClear ( ) const
Returns
True if every setting besides runtime mark is 0 or false. Ignores the runtime mark state.

The runtime mark setting is ignored by IsClear().

◆ IsDamaged()

bool ON_ComponentStatus::IsDamaged ( ) const
Returns
false if not damaged. true otherwise. (ON_ComponentStatus::DAMAGED_STATE::not_damaged != DamagedState())

◆ IsDeleted()

bool ON_ComponentStatus::IsDeleted ( ) const
Returns
false if not hidden. true otherwise. (ON_ComponentStatus::DELETED_STATE::not_deleted != DeletedState())

◆ IsHidden()

bool ON_ComponentStatus::IsHidden ( ) const
Returns
false if not hidden. true otherwise. (ON_ComponentStatus::HIDDEN_STATE::not_hidden != HiddenState())

◆ IsHighlighted()

bool ON_ComponentStatus::IsHighlighted ( ) const
Returns
false if not highlighted. true otherwise.

◆ IsLocked()

bool ON_ComponentStatus::IsLocked ( ) const
Returns
false if not locked. true otherwise. (ON_ComponentStatus::LOCKED_STATE::not_locked != LockedState())

◆ IsSelected()

bool ON_ComponentStatus::IsSelected ( ) const
Returns
false The selection state is ON_ComponentState::not_selected. true The selection state is ON_ComponentState::Selected or ON_ComponentState::Selected_pesistent.

◆ IsSelectedPersistent()

bool ON_ComponentStatus::IsSelectedPersistent ( ) const
Returns
false The selection state is ON_ComponentState::not_selected. true The selection state is ON_ComponentState::Selected_pesistent.

◆ NoEqualStates()

bool ON_ComponentStatus::NoEqualStates ( ON_ComponentStatus  states_filter,
ON_ComponentStatus  comparand 
) const
Parameters
states_filter[in] If no states are specified, then false is returned.
comparand[in] If a state is set in states_filter, the corresponding state in "this" and comparand will be tested.
Returns
True if every tested state in "this" and comparand are different.

For the purposes of this test, ON_ComponentState::Selected and ON_ComponentState::SelectedPersistent are considered equal.

◆ operator!=() [1/2]

bool ON_ComponentStatus::operator!= ( ON_ComponentStatus  )

◆ operator!=() [2/2]

bool ON_ComponentStatus::operator!= ( const ON_ComponentStatus ) const

◆ operator=()

ON_ComponentStatus& ON_ComponentStatus::operator= ( const ON_ComponentStatus )
default

◆ operator==() [1/2]

bool ON_ComponentStatus::operator== ( ON_ComponentStatus  )

◆ operator==() [2/2]

bool ON_ComponentStatus::operator== ( const ON_ComponentStatus ) const

◆ RuntimeMark()

bool ON_ComponentStatus::RuntimeMark ( ) const

◆ SelectedState()

ON_ComponentState ON_ComponentStatus::SelectedState ( ) const
Returns
ON_ComponentState::not_selected, ON_ComponentState::Selected or ON_ComponentState::Selected_pesistent.

◆ SetDamagedState()

unsigned int ON_ComponentStatus::SetDamagedState ( bool  bIsDamaged)
Returns
1 if status changed. 0 if status did not change.

◆ SetDeletedState()

unsigned int ON_ComponentStatus::SetDeletedState ( bool  bIsDeleted)
Returns
1 if status changed. 0 if status did not change.

◆ SetHiddenState()

unsigned int ON_ComponentStatus::SetHiddenState ( bool  bIsHidden)
Returns
1 if status changed. 0 if status did not change.

◆ SetHighlightedState()

unsigned int ON_ComponentStatus::SetHighlightedState ( bool  bIsHighlighed)
Returns
1 if status changed. 0 if status did not change.

◆ SetLockedState()

unsigned int ON_ComponentStatus::SetLockedState ( bool  bIsLocked)
Returns
1 if status changed. 0 if status did not change.

◆ SetRuntimeMark() [1/2]

unsigned int ON_ComponentStatus::SetRuntimeMark ( bool  bRuntimeMark)

◆ SetRuntimeMark() [2/2]

unsigned int ON_ComponentStatus::SetRuntimeMark ( )

◆ SetSelectedState() [1/2]

unsigned int ON_ComponentStatus::SetSelectedState ( bool  bSelectedState,
bool  bPersistent,
bool  bSynchronizeHighlight 
)
Returns
1 if status changed. 0 if status did not change.

◆ SetSelectedState() [2/2]

unsigned int ON_ComponentStatus::SetSelectedState ( ON_ComponentState  selected_state,
bool  bSynchronizeHighlight 
)

◆ SetStates()

unsigned int ON_ComponentStatus::SetStates ( ON_ComponentStatus  states_to_set)

If a state is set in states_to_set, the same state is set in "this".

Parameters
states_to_set[in]
Returns
1 if status changed. 0 if status did not change.

The runtime mark setting cannot be changed using SetStates().

◆ SetStatus()

unsigned int ON_ComponentStatus::SetStatus ( ON_ComponentStatus  status_to_copy)

Sets *this = status_to_copy and returns 1 if a state setting changed.

Returns
1 if status changed. 0 if status did not change.

The runtime mark setting cannot be changed using SetStatus().

◆ SomeEqualStates()

bool ON_ComponentStatus::SomeEqualStates ( ON_ComponentStatus  states_filter,
ON_ComponentStatus  comparand 
) const
Parameters
states_filter[in] If no states are specified, then false is returned.
comparand[in] If a state is set in states_filter, the corresponding state in "this" and comparand will be tested.
Returns
True if at least one tested state in "this" and comparand are identical.

For the purposes of this test, ON_ComponentState::Selected and ON_ComponentState::SelectedPersistent are considered equal.

Friends And Related Function Documentation

◆ ON_AggregateComponentStatus

friend class ON_AggregateComponentStatus
friend

Member Data Documentation

◆ AllSet

const ON_ComponentStatus ON_ComponentStatus::AllSet
static

◆ Damaged

const ON_ComponentStatus ON_ComponentStatus::Damaged
static

◆ Deleted

const ON_ComponentStatus ON_ComponentStatus::Deleted
static

◆ Hidden

const ON_ComponentStatus ON_ComponentStatus::Hidden
static

◆ Highlighted

const ON_ComponentStatus ON_ComponentStatus::Highlighted
static

◆ Locked

const ON_ComponentStatus ON_ComponentStatus::Locked
static

◆ NoneSet

const ON_ComponentStatus ON_ComponentStatus::NoneSet
static

◆ Selected

const ON_ComponentStatus ON_ComponentStatus::Selected
static

◆ SelectedPersistent

const ON_ComponentStatus ON_ComponentStatus::SelectedPersistent
static