@@ -634,80 +634,6 @@ bool Curve::isA(const std::string& name)
634634 return (name.compare (0 ,getTinyName ().size (),getTinyName ()) == 0 );
635635}
636636/* ----------------------------------------------------------------------------*/
637- <<<<<<< HEAD
638- void Curve::add (Group::Group1D* grp)
639- {
640- // std::cout<<"Curve::add("<<grp->getName()<<") à "<<getName()<<std::endl;
641- m_groups.push_back (grp);
642-
643- TkUtil::Color color (0 , 0 , 0 );
644- std::vector<Group::GroupEntity*> groups = Internal::groupsFromTypedGroups (m_groups);
645- if (true == getContext ( ).getGroupColor (groups, color))
646- {
647- getDisplayProperties ( ).setCloudColor (color);
648- getDisplayProperties ( ).setWireColor (color);
649- getDisplayProperties ( ).setSurfacicColor (color);
650- getDisplayProperties ( ).setFontColor (color);
651- } // if (true == getContext ( ).getGroupColor (groups, color))
652- }
653- /* ----------------------------------------------------------------------------*/
654- void Curve::remove (Group::Group1D* grp)
655- {
656- uint i = 0 ;
657- for (; i<m_groups.size () && grp != m_groups[i]; ++i)
658- ;
659-
660- if (i!=m_groups.size ())
661- m_groups.erase (m_groups.begin ()+i);
662- else
663- throw TkUtil::Exception (TkUtil::UTF8String (" Erreur interne (pas de groupe), avec Curve::remove" , TkUtil::Charset::UTF_8));
664- }
665- /* ----------------------------------------------------------------------------*/
666- bool Curve::find (Group::Group1D* grp)
667- {
668- uint i = 0 ;
669- for (; i<m_groups.size () && grp != m_groups[i]; ++i)
670- ;
671-
672- return (i!=m_groups.size ());
673- }
674- /* ----------------------------------------------------------------------------*/
675- void Curve::getGroupsName (std::vector<std::string>& gn) const
676- {
677- gn.clear ();
678- for (uint i = 0 ; i<m_groups.size (); ++i)
679- gn.push_back (m_groups[i]->getName ());
680- }
681- /* ----------------------------------------------------------------------------*/
682- void Curve::getGroups (std::vector<Group::GroupEntity*>& grp) const
683- {
684- grp.insert (grp.end (), m_groups.begin (), m_groups.end ());
685- }
686- /* ----------------------------------------------------------------------------*/
687- int Curve::getNbGroups () const
688- {
689- return m_groups.size ();
690- }
691- /* ----------------------------------------------------------------------------*/
692- void Curve::setDestroyed (bool b)
693- {
694- if (isDestroyed () == b)
695- return ;
696-
697- // supprime la relation du groupe vers la courbe en cas de destruction
698- if (b)
699- for (uint i = 0 ; i<m_groups.size (); ++i)
700- m_groups[i]->remove (this );
701- else
702- // et inversement en cas de ressurection
703- for (uint i = 0 ; i<m_groups.size (); ++i)
704- m_groups[i]->add (this );
705-
706- Entity::setDestroyed (b);
707- }
708- /* ----------------------------------------------------------------------------*/
709- =======
710- >>>>>>> 3e32643 (Reduce dependencencies Geom --> Group)
711637bool Curve::isLinear () const
712638{
713639 if (m_occ_edges.size () == 1 )
0 commit comments