From d3c1165fe60ed590703e60000ca9bfe3807a66d4 Mon Sep 17 00:00:00 2001 From: cignoni Date: Sat, 12 Nov 2005 18:36:51 +0000 Subject: [PATCH] Added 'Visited' flag functions --- vcg/simplex/vertexplus/base.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/vcg/simplex/vertexplus/base.h b/vcg/simplex/vertexplus/base.h index 937d02d5..0dda8c7e 100644 --- a/vcg/simplex/vertexplus/base.h +++ b/vcg/simplex/vertexplus/base.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.2 2004/04/03 13:33:55 cignoni +Missing include + Revision 1.1 2004/03/29 08:36:26 cignoni First working version! @@ -175,10 +178,12 @@ public: bool IsW() const {return (Flags() & NOTWRITE)== 0;} /// This funcion checks whether the vertex is both readable and modifiable bool IsRW() const {return (Flags() & (NOTREAD | NOTWRITE)) == 0;} - /// checks if the vertex is Modified + /// checks if the vertex is Selected bool IsS() const {return (Flags() & SELECTED) != 0;} - /// checks if the vertex is readable + /// checks if the vertex is a border one bool IsB() const {return (Flags() & BORDER) != 0;} + /// checks if the vertex Has been visited + bool IsV() const {return (Flags() & VISITED) != 0;} /** Set the flag value @param flagp Valore da inserire nel flag @@ -208,6 +213,8 @@ public: void ClearS() {Flags() &= ~SELECTED;} void SetB() {Flags() |=BORDER;} void ClearB() {Flags() &=~BORDER;} + void SetV() {Flags() |=VISITED;} + void ClearV() {Flags() &=~VISITED;} /// Return the first bit that is not still used static int &LastBitFlag()