swh:1:snp:818279ffd0c3c25a68d33cc2b97d007e1bdc7ed6
Raw File
Tip revision: 8abaf41b7c113afafcca20c0b869826efb0c6e6b authored by ennetws on 15 January 2014, 06:15:06 UTC
Changes to filtering.
Tip revision: 8abaf41
CurveskelModel.h
#pragma once

#include <QDebug>
#include <QString>

#include "global.h"
#include "Model.h"
#include "CurveskelTypes.h"

namespace CurveskelTypes
{
    /// @{ Forward declaration of helpers defined in helper/...
    ///    This reduces clutter of this class header
    class CurveskelForEachVertexHelper;
    class CurveskelForEachEdgeHelper;
    /// @}

    class EXPORT CurveskelModel : public Starlab::Model, public CurveskelTypes::MyWingedMesh{
        Q_OBJECT
        Q_INTERFACES(Starlab::Model)

    public:
        CurveskelModel(QString path=QString(), QString name=QString());
        void updateBoundingBox();

        /// @{ Qt foreach helpers
        public:
            CurveskelForEachVertexHelper vertices();
            CurveskelForEachEdgeHelper edges();
        /// @}

        std::set<Vertex> junctions();

		std::set<Vertex> adjacent_set(Vertex v);
		Vertex other_vertex(Edge e, Vertex v);
    };
}
back to top