mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +03:00
Integration of OCCT 6.5.0 from SVN
This commit is contained in:
57
src/SelectMgr/SelectMgr_Selection.cxx
Executable file
57
src/SelectMgr/SelectMgr_Selection.cxx
Executable file
@@ -0,0 +1,57 @@
|
||||
// Copyright: Matra-Datavision 1995
|
||||
// File: SelectMgr_Selection.cxx
|
||||
// Created: Thu Feb 16 10:20:29 1995
|
||||
// Author: Mister rmi
|
||||
// <rmi>
|
||||
|
||||
|
||||
|
||||
#include <SelectMgr_Selection.ixx>
|
||||
|
||||
|
||||
//==================================================
|
||||
// Function: Create
|
||||
// Purpose :
|
||||
//==================================================
|
||||
SelectMgr_Selection
|
||||
::SelectMgr_Selection (const Standard_Integer IdMode):
|
||||
myMode(IdMode)
|
||||
{}
|
||||
//==================================================
|
||||
// Function: ADD
|
||||
// Purpose :
|
||||
//==================================================
|
||||
void SelectMgr_Selection
|
||||
::Add (const Handle(SelectBasics_SensitiveEntity)& aprimitive)
|
||||
{
|
||||
// if input is null:
|
||||
// in debug mode raise exception
|
||||
Standard_NullObject_Raise_if
|
||||
(aprimitive.IsNull(), "Null sensitive entity is added to the selection");
|
||||
// in release mode do not add
|
||||
if (!aprimitive.IsNull())
|
||||
myentities.Append(aprimitive);
|
||||
}
|
||||
|
||||
//==================================================
|
||||
// Function: Clear
|
||||
// Purpose :
|
||||
//==================================================
|
||||
void SelectMgr_Selection
|
||||
::Clear () {myentities.Clear();}
|
||||
|
||||
//==================================================
|
||||
// Function: IsEmpty
|
||||
// Purpose :
|
||||
//==================================================
|
||||
Standard_Boolean SelectMgr_Selection
|
||||
::IsEmpty() const
|
||||
{
|
||||
return myentities.IsEmpty();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user