• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C++ ML_TRACE_IN函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中ML_TRACE_IN函数的典型用法代码示例。如果您正苦于以下问题:C++ ML_TRACE_IN函数的具体用法?C++ ML_TRACE_IN怎么用?C++ ML_TRACE_IN使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了ML_TRACE_IN函数的18个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: ML_TRACE_IN

//----------------------------------------------------------------------------------
//! Handle field changes of the field field.
//----------------------------------------------------------------------------------
void FuzzyConnectedness::handleNotification (Field *field)
{
  ML_TRACE_IN("FuzzyConnectedness::handleNotification ()");
  // Calculation will only be performed if either the start 
  // button is pressed or  the auto update mechanism is used. 
  if ((field ==_startButtonFld) || ((field != _startButtonFld) && _autoUpdateFld->isOn()))
  {
    _state = ML_RESULT_OK;
    //If either input image is open the calculation will be cancelled.
    if(!getUpdatedInImg(0) || !getUpdatedInImg(1))
    {
      _state = ML_DISCONNECTED_GRAPH;
      clearData();
      getOutImg(0)->setOutOfDate();
      getOutImg(1)->setOutOfDate();
      getOutField(0)->notifyAttachments();
      getOutField(1)->notifyAttachments();
    }
    else
    {
      // Same extent of image data and seed point image are required
      if ( getUpdatedInImg(0)->getImgExt() != getUpdatedInImg(1)->getImgExt() )
      {
        _state=ML_BAD_DIMENSION;
      }
      // Calculation will be started here
      else{
        _state = calculate(getUpdatedInImg(0),getUpdatedInImg(1));
      }
    }
    // Let the connected modules know that the output has changed.
    getOutField(0)->notifyAttachments();
    getOutField(1)->notifyAttachments();
  }
}
开发者ID:cguagliano,项目名称:communitymodules,代码行数:38,代码来源:mlFuzzyConnectedness.cpp


示例2: ML_TRACE_IN

//! Modify item at position \a index. If \a fromCurrentItem is true, the
//! item is copied from _currentItem, otherwise the item property corresponding
//! to the property field \a field is modified.
//! Return true if item has been modified.
bool ColoredMarkerListContainer::modifyItem(MLssize_t index, Field *field, bool fromCurrentItem)
{
    ML_TRACE_IN("bool ColoredMarkerListContainer::modifyItem(MLssize_t index, Field *field, bool fromCurrentItem)");

    ML_TRY{
      bool modified = true;
      ColoredMarker *marker=NULL;
    
      // Valid list and item?
      if (_listPtr && (index >= 0) && (index < mlrange_cast<MLssize_t>(_listPtr->getSize())) )
      {
          // Modify from property field?
          if (!fromCurrentItem)
          {
              // Pointer to list item
              marker = &(*_listPtr)[mlrange_cast<size_t>(index)];
            
              // Position fields
              if ((field == _fldPos3D) || (field == _fldPosC) || (field == _fldPosT) || (field == _fldPosU))
              {
                  marker->pos = Vector6(_fldPos3D->getVector3Value(),0,0,0);
                  marker->c() = _fldPosC->getFloatValue();
                  marker->t() = _fldPosT->getFloatValue();
                  marker->u() = _fldPosU->getFloatValue();

              } 
              else if (field == _fldColor  || (field == _fldAlpha))
              {
                  // ImageVector field
                  marker->rgba()          = Vector4(_fldColor->getVector3Value(),_fldAlpha->getFloatValue());

              } 
              else if (field == _fldType)
              {
                  // Type field
                  marker->type = _fldType->getIntValue();
                
              } 
              else 
              {
                  // Not an ColoredMarker-specific field, pass call to base class
                  modified = ListContainerTemplate<ColoredMarkerList>::modifyItem(index, field, fromCurrentItem);
              }

          } 
          else 
          {
              // Modify from _currentItem, handled in base class
              modified = ListContainerTemplate<ColoredMarkerList>::modifyItem(index, field, fromCurrentItem);
          }

      } else 
      {
          modified = false;
      }
    
      return modified;
    }
    ML_CATCH_RETHROW;
}
开发者ID:cguagliano,项目名称:communitymodules,代码行数:64,代码来源:ColoredMarkerList.cpp


示例3: ML_TRACE_IN

//----------------------------------------------------------------------------------
//! Handle notifications of CSOList
//----------------------------------------------------------------------------------
void CSOPointsToXMarkers::CSOListNotifyObserverCB(void* userData, int /*notificationFlag*/)
{
  ML_TRACE_IN("CSOPointsToXMarkers::_csoListNotifyObserverCB");

  CSOPointsToXMarkers * thisPointer = static_cast<CSOPointsToXMarkers*>(userData);
  thisPointer->convertCSOToXMarkerList();
}
开发者ID:cguagliano,项目名称:communitymodules,代码行数:10,代码来源:mlCSOPointsToXMarkers.cpp


示例4: ML_TRACE_IN

void ListModifyProperties::activateAttachments() {  
   
  ML_TRACE_IN("void ListModifyProperties::activateAttachments()");

  Engine::activateAttachments();
  _autoUpdateModeFld->touch();
}
开发者ID:cguagliano,项目名称:communitymodules,代码行数:7,代码来源:ListModifyProperties.cpp


示例5: WEMInspector

//----------------------------------------------------------------------------------
//! Constructor
//----------------------------------------------------------------------------------
WEMVolume::WEMVolume (std::string type)
  : WEMInspector(type)
{
  ML_TRACE_IN("WEMVolume::WEMVolume()")

  FieldContainer *fields = getFieldContainer();
  ML_CHECK(fields);

  // Suppress calls of handleNotification on field changes.
  handleNotificationOff();

  // Add min, max volume, and corresponding index fields
  _minVolumeFld = fields->addFloat("minVolume");
  _minVolumeFld->setFloatValue(0.0f);
  _maxVolumeFld = fields->addFloat("maxVolume");
  _maxVolumeFld->setFloatValue(0.0f);
  _minVolumeIndexFld = fields->addInt("minVolumePatchIndex");
  _minVolumeIndexFld->setIntValue(0);
  _maxVolumeIndexFld = fields->addInt("maxVolumePatchIndex");
  _maxVolumeIndexFld->setIntValue(0);
  
  // Add output curve field
  _outputVolumeCurveFld = fields->addBase("outputVolumeCurve");
  _outputVolumeCurveFld->setBaseValue(&_outputVolumeCurve);

  // Reactivate calls of handleNotification on field changes.
  handleNotificationOn();
}
开发者ID:cguagliano,项目名称:communitymodules,代码行数:31,代码来源:WEMVolume.cpp


示例6: ML_TRACE_IN

//----------------------------------------------------------------------------------
//! Handle field changes of the field \c field.
//----------------------------------------------------------------------------------
void WEMVolume::handleNotification (Field *field)
{
  ML_TRACE_IN("WEMVolume::handleNotification()")

  // call parent class and handle apply/autoApply and in/outputs
  WEMInspector::handleNotification(field);
}
开发者ID:cguagliano,项目名称:communitymodules,代码行数:10,代码来源:WEMVolume.cpp


示例7: ML_TRACE_IN

void CSODistance::_csoListNotificationCB(void* userData, int notificationFlag)
{
  ML_TRACE_IN("void CSODistance::_csoListNotificationCB()");

  CSODistance* thisp = static_cast<CSODistance*>(userData);

  thisp->_isInNotificationCB = true;
  bool autoApply = thisp->_autoApplyFld->getBoolValue();

  if ((notificationFlag & CSOList::NOTIFICATION_CSO_SELECTION) ||
      (notificationFlag & CSOList::NOTIFICATION_GROUP_SELECTION))
  {
      if (thisp->_listenToSelectionChangedNotificationsFld->getBoolValue()){
        if (autoApply) { thisp->_process(); }
      }
  }
  if ((notificationFlag & CSOList::NOTIFICATION_CSO_FINISHED) ||
      (notificationFlag & CSOList::NOTIFICATION_GROUP_FINISHED))
  {
      if (thisp->_listenToFinishingNotificationsFld->getBoolValue()){
        if (autoApply) { thisp->_process(); }
      }
  }
  if (notificationFlag & CSOList::NOTIFICATION_REPAINT){
    if (thisp->_listenToRepaintNotificationsFld->getBoolValue()){
        if (autoApply) { thisp->_process(); }
    }
  }
  if (notificationFlag & CSOList::NOTIFICATION_INTERACTION_INIT){
    // do nothing
  }

  thisp->_isInNotificationCB = false;
}
开发者ID:hjkuijf,项目名称:communitymodules,代码行数:34,代码来源:CSODistance.cpp


示例8: BaseOp

//----------------------------------------------------------------------------------
//! Constructor
//----------------------------------------------------------------------------------
StringToCurve::StringToCurve () : BaseOp(0, 0)
{
  ML_TRACE_IN("StringToCurve::StringToCurve ()")

  handleNotificationOff();

  FieldContainer *fieldC = getFieldContainer();

  m_OutCurveList = new CurveList;
  f_OutCurveList = fieldC->addBase( "outCurveList" );
  f_OutCurveList->setBaseValue( m_OutCurveList );

  f_CurveString = fieldC->addString("curveString");
  f_CurveString->setStringValue("");

  f_IndexString = fieldC->addString("indexString");
  f_IndexString->setStringValue("");

  f_ValueSeparator = fieldC->addString("valueSeparator");
  f_ValueSeparator->setStringValue(" ");

  f_CurveSeparator = fieldC->addString( "curveSeparator" );
  f_CurveSeparator->setStringValue(";");

  handleNotificationOn();
}
开发者ID:hjkuijf,项目名称:communitymodules,代码行数:29,代码来源:mlStringToCurve.cpp


示例9: ML_TRACE_IN

//----------------------------------------------------------------------------------
//! Handle field changes of the field field.
//----------------------------------------------------------------------------------
void StringToCurve::handleNotification (Field * /*field*/)
{
  ML_TRACE_IN("StringToCurve::handleNotification ()");

  UpdateCurve();
  f_OutCurveList->notifyAttachments();
}
开发者ID:hjkuijf,项目名称:communitymodules,代码行数:10,代码来源:mlStringToCurve.cpp


示例10: WEMProcessor

//----------------------------------------------------------------------------------
//! Constructor
//----------------------------------------------------------------------------------
WEMCMSelectPatches::WEMCMSelectPatches (std::string type)
  : WEMProcessor(type, false)
{
  ML_TRACE_IN("WEMCMSelectPatches::WEMCMSelectPatches()")

  FieldContainer *fields = getFieldContainer();
  ML_CHECK(fields);

  // Suppress calls of hanbdleNotification on field changes.
  handleNotificationOff();

  // WEM Patch start and end index field
  _patchStartIndexFld = fields->addInt("patchStartIndex");
  _patchStartIndexFld->setIntValue(0);
  _patchEndIndexFld = fields->addInt("patchEndIndex");
  _patchEndIndexFld->setIntValue(0);

  // Bool field to enable to select only one patch based on start index value
  _onePatchFld = fields->addBool("onePatch");
  _onePatchFld->setBoolValue(false);
  
  // Set auto apply fields
  _autoApplyFld->setBoolValue(true);

  _notifyFld = fields->addNotify("notify");
 
  // Reactivate calls of handleNotification on field changes.
  handleNotificationOn();
}
开发者ID:cguagliano,项目名称:communitymodules,代码行数:32,代码来源:WEMCMSelectPatches.cpp


示例11: MLBaseListExtensionsInit

ML_START_NAMESPACE

  // Initialization of the run type system

  int MLBaseListExtensionsInit()
  {
    ML_TRACE_IN("MLBaseListExtensionsInit()")

    IndexPair                  ::initClass();
    IndexPairList              ::initClass();
    IndexPairListContainer     ::initClass();

    ColoredMarker              ::initClass();
    ColoredMarkerList          ::initClass();
    ColoredMarkerListContainer ::initClass();

    XMarkerToColoredMarker     ::initClass();
    ColoredMarkerToXMarker     ::initClass();

    ListInfo                   ::initClass();
    ListFilter                 ::initClass();
    ListModifyProperties       ::initClass();

    MarkerListImport           ::initClass();

    return 1;
  }
开发者ID:cguagliano,项目名称:communitymodules,代码行数:27,代码来源:MLBaseListExtensionsInit.cpp


示例12: BaseOp

//----------------------------------------------------------------------------------
//! Constructor
//----------------------------------------------------------------------------------
CalcCodedSegmentation::CalcCodedSegmentation (void) : BaseOp(1, 1)
{
  ML_TRACE_IN("CalcCodedSegmentation::CalcCodedSegmentation()")

  FieldContainer *fields = getFieldContainer();

  // Suppress calls of handleNotification on field changes.
  handleNotificationOff();

  MAX_SIZE = SHRT_MAX; //32767

  _fld_Add = fields->addNotify("Add");  
  (_fld_NameToAdd = fields->addString("NameToAdd"))->setStringValue("");
  (_fld_addMinValue = fields->addInt("addMinValue"))->setIntValue(1);
  (_fld_addMaxValue = fields->addInt("addMaxValue"))->setIntValue(ML_INT_MAX);
  (_fld_addAllExceptNull = fields->addBool("addAllExceptNull"))->setBoolValue(false);
  _fld_Reset = fields->addNotify("Reset");
  _fld_Purge = fields->addNotify("Purge");
  _fld_Finish = fields->addNotify("Finish");
  (_fld_ImageValues = fields->addString("ImageValues"))->setStringValue("");
  (_fld_ObjectValues = fields->addString("ObjectValues"))->setStringValue("");

  //All pointer values need to be set NULL here, before reset, otherwise, default random values of pointe can be interpreted as real values and a non existing pointer is tried to delete ... uuhhhh
  _virtualVolume = NULL;
  replaceValues = NULL;
  objectValues = NULL;
  valuesForObjects = NULL;
  objectNames = NULL;

  reset();

  // Reactivate calls of handleNotification on field changes.
  handleNotificationOn();
}
开发者ID:cguagliano,项目名称:communitymodules,代码行数:37,代码来源:mlCalcCodedSegmentation.cpp


示例13: WEMInspector

//----------------------------------------------------------------------------------
//! Constructor
//----------------------------------------------------------------------------------
WEMNodesToFile::WEMNodesToFile (std::string type)
  : WEMInspector(type)
{
  ML_TRACE_IN("WEMNodesToFile::WEMNodesToFile()")

  FieldContainer *fields = getFieldContainer();
  ML_CHECK(fields);

  // Suppress calls of handleNotification on field changes.
  handleNotificationOff();

  // Add filename field
  _filenameFld = fields->addString("filename");
  _filenameFld->setStringValue("");

  // Add transformix option field
  _transformixCompatibleFld = fields->addBool("transformixCompatible");
  _transformixCompatibleFld->setBoolValue(false);

  // Add save button
  _saveFld = fields->addNotify("save");

  // Reactivate calls of handleNotification on field changes.
  handleNotificationOn();
}
开发者ID:cguagliano,项目名称:communitymodules,代码行数:28,代码来源:WEMNodesToFile.cpp


示例14: ML_TRACE_IN

//----------------------------------------------------------------------------------
//! Code below is performed after module and network initialization.
//----------------------------------------------------------------------------------
void WEMCenterOfMass::activateAttachments()
{
    ML_TRACE_IN("WEMCenterOfMass::activateAttachments()")

    // call parent class
    WEMInspector::activateAttachments();
}
开发者ID:cguagliano,项目名称:communitymodules,代码行数:10,代码来源:WEMCenterOfMass.cpp


示例15: ML_TRACE_IN

void MainAxisPCA::getInverseMatrix(float **aMatrix, float **invMatrix) 
{
    ML_TRACE_IN("void MainAxisPCA::getInverseMatrix(float **aMatrix, float **invMatrix) ");

    // Compute inverse matrix (only for 3x3 matrices)
    // calculate determinant D and multiply the result with 1/D
    
    float det = aMatrix[1][1] * aMatrix[2][2] * aMatrix[3][3]
        + aMatrix[1][2] * aMatrix[2][3] * aMatrix[3][1]
        + aMatrix[1][3] * aMatrix[2][1] * aMatrix[3][2]
        - aMatrix[1][3] * aMatrix[2][2] * aMatrix[3][1]
        - aMatrix[1][1] * aMatrix[2][3] * aMatrix[3][2]
        - aMatrix[1][2] * aMatrix[2][1] * aMatrix[3][3];
    
    if (det != 0){ det = 1.0f/det; }
    
    // Compute adjacent matrix, transpose it and multiply with D
    
    invMatrix[1][1] =  det * (aMatrix[2][2] * aMatrix[3][3] - aMatrix[2][3] * aMatrix[3][2]);
    invMatrix[2][1] = -det * (aMatrix[2][1] * aMatrix[3][3] - aMatrix[2][3] * aMatrix[3][1]);
    invMatrix[3][1] =  det * (aMatrix[2][1] * aMatrix[3][2] - aMatrix[2][2] * aMatrix[3][1]);
    invMatrix[1][2] = -det * (aMatrix[1][2] * aMatrix[3][3] - aMatrix[1][3] * aMatrix[3][2]);
    invMatrix[2][2] =  det * (aMatrix[1][1] * aMatrix[3][3] - aMatrix[1][3] * aMatrix[3][1]);
    invMatrix[3][2] = -det * (aMatrix[1][1] * aMatrix[3][2] - aMatrix[1][2] * aMatrix[3][1]);
    invMatrix[1][3] =  det * (aMatrix[1][2] * aMatrix[2][3] - aMatrix[1][3] * aMatrix[2][2]);
    invMatrix[2][3] = -det * (aMatrix[1][1] * aMatrix[2][3] - aMatrix[1][3] * aMatrix[2][1]);
    invMatrix[3][3] =  det * (aMatrix[1][1] * aMatrix[2][2] - aMatrix[1][2] * aMatrix[2][1]);
}
开发者ID:cguagliano,项目名称:communitymodules,代码行数:28,代码来源:MainAxisPCA.cpp


示例16: ML_TRACE_IN

TileSphere::~TileSphere() 
{
    ML_TRACE_IN("TileSphere::~TileSphere()");

    ML_DELETE_ARR(_tileSpheres);
    ML_DELETE_ARR(_subset);
}
开发者ID:cguagliano,项目名称:communitymodules,代码行数:7,代码来源:TileSphere.cpp


示例17: ML_TRACE_IN

float METKSurfaceDistance3D::getImageValue(const SbVec3f* vertex) {
    ML_TRACE_IN("METKSurfaceDistance3D::getImageValue(const SbVec3f* vertex)");
    // if intersection contains node, retrieve according
    // value, else fill in default value
    float imgVal = -1;
    if (_inputImageIsValid) {
        // compute node's position in voxel space
        vec3 pos;
        pos[0] = vertex->getValue()[0];
        pos[1] = vertex->getValue()[1];
        pos[2] = vertex->getValue()[2];

        _image->transformToVoxelCoord(pos, pos);

        Vector nodeVPos;
        nodeVPos.x = pos[0];
        nodeVPos.y = pos[1];
        nodeVPos.z = pos[2];
        if (_intersectBB.contains(nodeVPos)) {
            imgVal = _subImageMemory[ (int)std::floor ((nodeVPos.x - _intersectBB.v1.x))            +
                                      (int)std::floor(((nodeVPos.y - _intersectBB.v1.y) * _yStride)) +
                                      (int)std::floor(((nodeVPos.z - _intersectBB.v1.z) * _zStride))];
        }
    }
    return imgVal;
}
开发者ID:nmhansson,项目名称:communitymodules,代码行数:26,代码来源:mlMETKSurfaceDistance3D.cpp


示例18: ML_TRACE_IN

const void METKMsgManager::add(const ml::METKMsgSender* sender) {
    ML_TRACE_IN("METKMsgManager::add(const ml::METKMsgSender* sender)");
    // if there is no cache at all, create one
    if (!metkMsgManager)
        metkMsgManager = new METKMsgManager();
    // append sender
    metkMsgManager->SenderVec.push_back(sender);
}
开发者ID:nmhansson,项目名称:communitymodules,代码行数:8,代码来源:METKMsgManager.cpp



注:本文中的ML_TRACE_IN函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ MLog函数代码示例发布时间:2022-05-30
下一篇:
C++ MLX5_ST_SZ_DW函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap