Пример #1
0
        void MaskingItem::receive(mitk::DataNode::Pointer node)
        {
            if(!node)
            {
                setEnabled(false);
                emit this->setStatus(false);
                return;
            }

            bool isMasking = false;
            node->GetBoolProperty("masking", isMasking);
            mitk::LabelSetImage* labelSetImage = dynamic_cast<mitk::LabelSetImage*>(node->GetData());
            
            if(isMasking && !labelSetImage)
            {
                setEnabled(true);
                this->m_node = node;
                this->createNewMask(node);
                emit this->setStatus(true);
            }
            else if(isMasking && labelSetImage)
            {
                setEnabled(true);
                this->m_node = node;
                this->initNode(node);
                emit this->setStatus(true);
            }
            else
            {
                setEnabled(false);
                deactivateTool();
                emit this->setStatus(false);
            }
        }
Пример #2
0
 void MaskingItem::deactivateTool(QString idx)
 {
     if(this->m_toolManager->GetActiveTool()->GetName() != idx)
         return;
     
     deactivateTool();
 }
Пример #3
0
	//------------------------------------------------------------------------------------
	void FrameStatsConfigToolOperation::notifyEndDialog()
	{
		deactivateTool();
	}