mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-07-09 20:08:43 +08:00
0024023: Revamp the OCCT Handle -- general
Missing headers added; includes of headers "Handle_...hxx" removed. Misuses of macro Handle() and its use in typedefs corrected. Alias classes Profile and Option are removed from IFSelect; ones defined in MoniTool are used directly. Removed header files defining only Handle classes (except Image_PixMap_Handle.hxx) Classes SelectMgr_BaseFrustum and now inherit Standard_Transient and can be manipulated by Handle (not NCollection_Handle) Fixed reference-type local variable pointing to temporary object Use of handle in conditional expressions and comparisons to NULL are replaced by call to method IsNull()
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
Handle_TObj_Model.hxx
|
||||
Handle_TObj_Object.hxx
|
||||
TObj_Application.cxx
|
||||
TObj_Application.hxx
|
||||
TObj_Assistant.cxx
|
||||
|
||||
@@ -1,37 +0,0 @@
|
||||
// Created on: 2004-11-22
|
||||
// Created by: Pavel TELKOV
|
||||
// Copyright (c) 2004-2014 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
// The original implementation Copyright: (C) RINA S.p.A
|
||||
|
||||
#ifndef Handle_TObj_Model_HeaderFile
|
||||
#define Handle_TObj_Model_HeaderFile
|
||||
|
||||
#include <TObj_Common.hxx>
|
||||
|
||||
//!
|
||||
//! Definition of the handle of TObj_Model
|
||||
//! to decrease dependances
|
||||
//!
|
||||
|
||||
class TObj_Model;
|
||||
|
||||
//! Define handle class for TObj_Model
|
||||
DEFINE_STANDARD_HANDLE(TObj_Model,MMgt_TShared)
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma once
|
||||
#endif
|
||||
@@ -1,37 +0,0 @@
|
||||
// Created on: 2004-11-22
|
||||
// Created by: Pavel TELKOV
|
||||
// Copyright (c) 2004-2014 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
// The original implementation Copyright: (C) RINA S.p.A
|
||||
|
||||
#ifndef Handle_TObj_Object_HeaderFile
|
||||
#define Handle_TObj_Object_HeaderFile
|
||||
|
||||
#include <TObj_Common.hxx>
|
||||
|
||||
//!
|
||||
//! Definition of the handle of TObj_Object
|
||||
//! to decrease dependances
|
||||
//!
|
||||
|
||||
class TObj_Object;
|
||||
|
||||
//! Define handle class for TObj_Object
|
||||
DEFINE_STANDARD_HANDLE(TObj_Object,MMgt_TShared)
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma once
|
||||
#endif
|
||||
@@ -23,6 +23,7 @@
|
||||
#include <TColStd_SequenceOfAsciiString.hxx>
|
||||
#include <TColStd_IndexedMapOfTransient.hxx>
|
||||
|
||||
class TObj_Model;
|
||||
|
||||
//! This class provides interface to the static data
|
||||
//! to be used during save or load models.
|
||||
|
||||
@@ -18,12 +18,19 @@
|
||||
#ifndef TObj_Model_HeaderFile
|
||||
#define TObj_Model_HeaderFile
|
||||
|
||||
|
||||
#include <TDF_Label.hxx>
|
||||
#include <TObj_Partition.hxx>
|
||||
#include <Message_Messenger.hxx>
|
||||
|
||||
class TObj_TNameContainer;
|
||||
class TObj_Partition;
|
||||
class TCollection_HExtendedString;
|
||||
class TDocStd_Document;
|
||||
class TObj_CheckModel;
|
||||
class TObj_Application;
|
||||
|
||||
class TObj_Model;
|
||||
DEFINE_STANDARD_HANDLE(TObj_Model,MMgt_TShared)
|
||||
|
||||
/**
|
||||
* Base class for OCAF based models.
|
||||
|
||||
@@ -25,8 +25,17 @@
|
||||
#include <TDF_Label.hxx>
|
||||
#include <gp_XYZ.hxx>
|
||||
|
||||
class TObj_Model;
|
||||
class TObj_Persistence;
|
||||
class TObj_ObjectIterator;
|
||||
class TObj_TNameContainer;
|
||||
class TCollection_HExtendedString;
|
||||
class TColStd_HArray1OfInteger;
|
||||
class TColStd_HArray1OfReal;
|
||||
class TColStd_HArray1OfExtendedString;
|
||||
|
||||
class TObj_Object;
|
||||
DEFINE_STANDARD_HANDLE(TObj_Object,MMgt_TShared)
|
||||
|
||||
//! Basis class for transient objects in OCAF-based models
|
||||
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
|
||||
#include <TObj_Common.hxx>
|
||||
|
||||
class TObj_Object;
|
||||
|
||||
/**
|
||||
* This class provides an iterator by objects in a partition.
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
|
||||
#include <TObj_Common.hxx>
|
||||
|
||||
class TObj_Object;
|
||||
typedef NCollection_Sequence<Handle(TObj_Object)> TObj_SequenceOfObject;
|
||||
|
||||
DEFINE_HSEQUENCE (TObj_HSequenceOfObject, TObj_SequenceOfObject)
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
|
||||
#include <TDF_Attribute.hxx>
|
||||
|
||||
class TObj_Model;
|
||||
class TObj_TModel;
|
||||
|
||||
/**
|
||||
* Attribute to store OCAF-based models in OCAF tree
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#include <TObj_Container.hxx>
|
||||
#include <TDF_Attribute.hxx>
|
||||
|
||||
class TObj_TNameContainer;
|
||||
|
||||
/**
|
||||
* This class provides OCAF Attribute to storing the unique names of object in
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#include <TDF_Attribute.hxx>
|
||||
#include <TDF_Label.hxx>
|
||||
|
||||
class TObj_Object;
|
||||
class Standard_GUID;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user