// Created on: 1999-11-29
// Created by: Peter KURNEV
// Copyright (c) 1999 Matra Datavision
// Copyright (c) 1999-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.

#ifndef _TopOpeBRepBuild_VertexInfo_HeaderFile
#define _TopOpeBRepBuild_VertexInfo_HeaderFile

#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>

#include <TopoDS_Vertex.hxx>
#include <TopoDS_Edge.hxx>
#include <Standard_Boolean.hxx>
#include <TopTools_IndexedMapOfOrientedShape.hxx>
#include <TopTools_ListOfShape.hxx>
#include <Standard_Integer.hxx>
class TopoDS_Vertex;
class TopoDS_Edge;



class TopOpeBRepBuild_VertexInfo 
{
public:

  DEFINE_STANDARD_ALLOC

  
  Standard_EXPORT TopOpeBRepBuild_VertexInfo();
  
  Standard_EXPORT void SetVertex (const TopoDS_Vertex& aV);
  
  Standard_EXPORT const TopoDS_Vertex& Vertex() const;
  
  Standard_EXPORT void SetSmart (const Standard_Boolean aFlag);
  
  Standard_EXPORT Standard_Boolean Smart() const;
  
  Standard_EXPORT Standard_Integer NbCases() const;
  
  Standard_EXPORT Standard_Integer FoundOut() const;
  
  Standard_EXPORT void AddIn (const TopoDS_Edge& anE);
  
  Standard_EXPORT void AddOut (const TopoDS_Edge& anE);
  
  Standard_EXPORT void SetCurrentIn (const TopoDS_Edge& anE);
  
  Standard_EXPORT const TopTools_IndexedMapOfOrientedShape& EdgesIn() const;
  
  Standard_EXPORT const TopTools_IndexedMapOfOrientedShape& EdgesOut() const;
  
  Standard_EXPORT TopTools_IndexedMapOfOrientedShape& ChangeEdgesOut();
  
  Standard_EXPORT void Dump() const;
  
  Standard_EXPORT const TopoDS_Edge& CurrentOut();
  
  Standard_EXPORT void AppendPassed (const TopoDS_Edge& anE);
  
  Standard_EXPORT void RemovePassed();
  
  Standard_EXPORT const TopTools_ListOfShape& ListPassed() const;
  
  Standard_EXPORT void Prepare (const TopTools_ListOfShape& aL);




protected:





private:



  TopoDS_Vertex myVertex;
  TopoDS_Edge myCurrent;
  TopoDS_Edge myCurrentIn;
  Standard_Boolean mySmart;
  TopTools_IndexedMapOfOrientedShape myEdgesIn;
  TopTools_IndexedMapOfOrientedShape myEdgesOut;
  TopTools_IndexedMapOfOrientedShape myLocalEdgesOut;
  TopTools_ListOfShape myEdgesPassed;
  Standard_Integer myFoundOut;


};







#endif // _TopOpeBRepBuild_VertexInfo_HeaderFile
