Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

  • adfc2e5
  • /
  • topo-blend
  • /
  • topo-blend.h
Raw File Download

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
content badge Iframe embedding
swh:1:cnt:8d04dd79279f07f4ba553cdadb271eabd4907240
directory badge Iframe embedding
swh:1:dir:4cd23d1e54634cfb4ba85fc907bddef6128f3245

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
  • directory
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
topo-blend.h
#pragma once

#include "qglviewer/qglviewer.h"
#include "SurfaceMeshPlugins.h"
#include "SurfaceMeshHelper.h"

#include "topo_blend_widget.h"
#include "StructureGraph.h"
#include "StructureNode.h"

// Forward declare
class GraphCorresponder;
class TopoBlender;
class Scheduler;

class GraphsManager;
class CorrespondenceManager;
class SynthesisManager;

class Wizard;
class GraphExplorer;

class topoblend : public SurfaceMeshModePlugin{
    Q_OBJECT
    Q_INTERFACES(ModePlugin)

    QIcon icon(){ return QIcon(":/images/topo-blend-icon.png"); }

public:
    friend class topo_blend_widget;
	friend class Wizard;

    topo_blend_widget * widget;
	Wizard * wizard;
	GraphExplorer * graph_explorer;

    QVector<Structure::Graph*> graphs;
	Eigen::AlignedBox3d bigbox;

    // DEBUG:
    QVector< Vector3 > debugPoints,debugPoints2,debugPoints3;
    QVector< QPair<Vector3,Vector3> > debugLines,debugLines2,debugLines3;
    Vector3VertexProperty points;

public:

    // Corresponder
    GraphCorresponder *gcoor;
    Structure::Graph * getGraph(int id);

public:
    topoblend();

    /// Functions part of the EditPlugin system
    void create();
    void destroy(){}

    void decorate();
	void drawFancyBackground();

	void drawBBox(Eigen::AlignedBox3d bbox);
	bool rayBBoxIntersect(Eigen::AlignedBox3d bbox, Vector3 origin, Vector3 ray);

    // Selection
    void drawWithNames();
    bool postSelection(const QPoint& p);

    // Mouse and Keyboard
	bool keyPressEvent( QKeyEvent* event );
	bool mouseReleaseEvent( QMouseEvent * event );
	bool mousePressEvent( QMouseEvent * event );
	bool mouseMoveEvent( QMouseEvent * event );

	TopoBlender * blender;
	Scheduler * scheduler;

	QMap<QString, QVariant> params;
	QMap<QString, QVariant> viz_params;
	QMap<QString, QVariant> property;

    // Refactoring
    friend class GraphsManager;
    friend class CorrespondenceManager;
    friend class SynthesisManager;

    GraphsManager * g_manager;
    CorrespondenceManager * c_manager;
    SynthesisManager * s_manager;

public slots:

	// Main blend process
	void doBlend();

    // Update GUI
    void updateDrawArea();
    void setSceneBounds();
    void setStatusBarMessage(QString);

    // Show graphs
    void updateActiveGraph(Structure::Graph *);

signals:
	void statusBarMessage(QString);
};

back to top

Software Heritage — Copyright (C) 2015–2025, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API