#include <opennurbs_compstat.h>
◆ ON_ComponentStatus() [1/3]
ON_ComponentStatus::ON_ComponentStatus |
( |
| ) |
|
|
default |
◆ ~ON_ComponentStatus()
ON_ComponentStatus::~ON_ComponentStatus |
( |
| ) |
|
|
default |
◆ ON_ComponentStatus() [2/3]
◆ ON_ComponentStatus() [3/3]
ON_ComponentStatus::ON_ComponentStatus |
( |
ON_ComponentState |
state | ) |
|
Constructs a status with the specified state set.
◆ AllEqualStates()
- 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()
If a state is set in states_to_clear, the same state is cleared in "this".
- Parameters
-
- 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()
- 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]
◆ operator!=() [2/2]
◆ operator=()
◆ operator==() [1/2]
◆ operator==() [2/2]
◆ 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()
If a state is set in states_to_set, the same state is set in "this".
- Parameters
-
- Returns
- 1 if status changed. 0 if status did not change.
The runtime mark setting cannot be changed using SetStates().
◆ SetStatus()
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()
- 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.
◆ ON_AggregateComponentStatus
◆ AllSet
◆ Damaged
◆ Deleted
◆ Hidden
◆ Highlighted
◆ Locked
◆ NoneSet
◆ Selected
◆ SelectedPersistent