Go to the SVN repository for this file.
41 #ifndef OBJECTS_MMDB3_REGION_BOUNDARY_BASE_HPP 42 #define OBJECTS_MMDB3_REGION_BOUNDARY_BASE_HPP 48 #ifndef BEGIN_objects_SCOPE 49 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects) 50 # define END_objects_SCOPE END_SCOPE(objects) 103 virtual voidReset(
void);
106 virtual voidResetSelection(
void);
112E_Choice Which(
void)
const;
118 voidCheckSelected(E_Choice index)
const;
124NCBI_NORETURN
voidThrowInvalidSelection(E_Choice index)
const;
132 static stringSelectionName(E_Choice index);
165 boolIsSphere(
void)
const;
171 const TSphere& GetSphere(
void)
const;
191 boolIsCone(
void)
const;
197 const TCone& GetCone(
void)
const;
203 TCone& SetCone(
void);
217 boolIsCylinder(
void)
const;
223 const TCylinder& GetCylinder(
void)
const;
243 boolIsBrick(
void)
const;
249 const TBrick& GetBrick(
void)
const;
255 TBrick& SetBrick(
void);
272 static const char*
constsm_SelectionNames[];
Region boundaries are defined by regular solids located in the model space.
Base class for all serializable objects.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_MMDB3_EXPORT
NCBI_NS_NCBI::CSerialObject * m_object
void ThrowInvalidSelection(E_Choice index) const
Throw 'InvalidSelection' exception.
E_Choice Which(void) const
Which variant is currently selected.
void CheckSelected(E_Choice index) const
Verify selection, throw exception if it differs from the expected.
CRegion_boundary_Base & operator=(const CRegion_boundary_Base &)
void Select(E_Choice index, EResetVariant reset, CObjectMemoryPool *pool)
Select the requested variant if needed, allocating CObject variants from memory pool.
void DoSelect(E_Choice index, CObjectMemoryPool *pool=0)
bool IsSphere(void) const
Check if variant Sphere is selected.
E_Choice
Choice variants.
DECLARE_INTERNAL_TYPE_INFO()
void Select(E_Choice index, EResetVariant reset=eDoResetVariant)
Select the requested variant if needed.
bool IsCylinder(void) const
Check if variant Cylinder is selected.
CRegion_boundary_Base(const CRegion_boundary_Base &)
virtual void ResetSelection(void)
Reset the selection (set it to e_not_set).
bool IsBrick(void) const
Check if variant Brick is selected.
E_ChoiceStopper
Maximum+1 value of the choice variant enumerator.
bool IsCone(void) const
Check if variant Cone is selected.
@ e_not_set
No variant selected.
const GenericPointer< typename T::ValueType > T2 value
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4