void Chord::Reset() { ClearClusters(); DocObject::Reset(); DurationInterface::Reset(); ResetCommon(); ResetStemmed(); ResetTiepresent(); }
Chord::~Chord() { ClearClusters(); }
ClusterManager::ClusterManager() { /*! * Create Gui */ this->ClusterModel = new SelectiveClustering(); this->setModal(false); this->NumObjects = new QLabel(" None "); this->NumClusters = new QLabel(" None "); this->NumSelected = new QLabel(" None "); this->AddClusterButton = new QPushButton(" Add Cluster "); this->RunOperatorButton = new QPushButton(" Run Operator "); connect(this->AddClusterButton, SIGNAL(clicked()), this, SLOT(SelectionToClusterModification())); connect(this->RunOperatorButton, SIGNAL(clicked()), this, SLOT(RunOperatorOnSelectedClusters())); this->ClearClusterButton = new QPushButton(" Clear Cluster "); connect(this->ClearClusterButton, SIGNAL(clicked()), this, SLOT(ClearClusters())); this->RemoveClusterButton = new QPushButton(" Remove Cluster "); connect(this->RemoveClusterButton, SIGNAL(clicked()), this, SLOT(RemoveSelectedClusters())); this->ClusterFeaturesButton = new QPushButton(" Show Cluster "); connect(this->ClusterFeaturesButton, SIGNAL(clicked()), this, SLOT(ShowClusterFeatures())); this->ShowObjectTables = new QPushButton(" Show Cluster Tables"); connect(this->ShowObjectTables, SIGNAL(clicked()), this, SLOT(ShowClusterObjectTables())); this->HideObjectTables = new QPushButton(" Close Cluster Tables"); connect(this->HideObjectTables, SIGNAL(clicked()), this, SLOT(CloseClusterObjectTables())); this->ShowDistributionButton = new QPushButton(" Show Distribution "); connect(this->ShowDistributionButton, SIGNAL(clicked()), this, SLOT(ShowDistribution())); //this->ClusterListView = new QListWidget(this); this->QVTKClusterTableView = new QvtkTableView(); this->ClusterFeatureDialog = NULL; this->ClusterObjectTables.clear(); this->OperatorList = new QComboBox(this); OperatorList->addItem("ADD"); OperatorList->addItem("SUBRACT"); OperatorList->addItem("AND"); OperatorList->addItem("XOR"); this->ActionType = new QComboBox(this); ActionType->addItem("Display"); ActionType->addItem("Override I"); ActionType->addItem("Override II"); this->Operand1 = new QComboBox(this); this->Operand2 = new QComboBox(this); QFormLayout *InfoLayout = new QFormLayout(); InfoLayout->addRow("Number of Objects: ", this->NumObjects); InfoLayout->addRow("Number of Clusters: ", this->NumClusters); InfoLayout->addRow("Number Selected: ", this->NumSelected); InfoLayout->addRow(this->ClearClusterButton); InfoLayout->addRow(this->AddClusterButton); InfoLayout->addRow(this->RemoveClusterButton); HOperatorDisplayLayout= new QHBoxLayout(); this->HOperatorDisplayLayout->addWidget(Operand1); this->HOperatorDisplayLayout->addWidget(OperatorList); this->HOperatorDisplayLayout->addWidget(ActionType); this->HOperatorDisplayLayout->addWidget(Operand2); this->HOperatorDisplayLayout->addWidget(this->RunOperatorButton); //InfoLayout->addRow(this->HOperatorDisplayLayout); QHBoxLayout* ButtonLayout = new QHBoxLayout(); //ButtonLayout->addWidget(this->AddClusterButton); //ButtonLayout->addWidget(this->RunOperatorButton); //ButtonLayout->addWidget(this->ClearClusterButton); ButtonLayout->addWidget(this->ClusterFeaturesButton); ButtonLayout->addWidget(this->ShowObjectTables); ButtonLayout->addWidget(this->HideObjectTables); ButtonLayout->addWidget(this->ShowDistributionButton); //InfoLayout->addRow("Operator: ", this->OperatorList); this->MainLayout = new QVBoxLayout(); this->HLayout = new QHBoxLayout(); //this->MainLayout->addWidget(this->ClusterListView); //this->HLayout->addWidget(this->ClusterTableView->GetWidget()); this->HLayout->addWidget(this->QVTKClusterTableView); this->HLayout->addLayout(InfoLayout); this->MainLayout->addLayout(ButtonLayout); this->MainLayout->addLayout(HLayout); //this->MainLayout->addWidget(this->QVTKClusterTableView); this->MainLayout->addLayout(this->HOperatorDisplayLayout); //this->MainLayout->addWidget(this->ClusterListView,0,0); //this->MainLayout->addWidget(this->ClusterTableView->GetWidget(),0,1); //this->MainLayout->addWidget(Operand1,1,0); //this->MainLayout->addWidget(OperatorList,1,1); //this->MainLayout->addWidget(Operand2,1,2); //this->MainLayout->addLayout(InfoLayout,2,0); this->setLayout(this->MainLayout); this->setWindowTitle(tr("Cluster Manager")); AnnotationLinkSetUp = false; }