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

C++ InitCommon函数代码示例

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

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



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

示例1: InitCommon

vtkProp *mitk::GPUVolumeMapper3D::GetVtkProp(mitk::BaseRenderer *renderer)
{
  if (!IsRenderable(renderer))
  {
    if (!m_Volumenullptr)
    {
      m_Volumenullptr = vtkSmartPointer<vtkVolume>::New();
      m_Volumenullptr->VisibilityOff();
    }
    return m_Volumenullptr;
  }

  InitCommon();
  InitVtkMapper(renderer);

  LocalStorage *ls = m_LSH.GetLocalStorage(renderer);

  if (ls->m_rayInitialized)
    return ls->m_VolumeRAY;

  if (ls->m_gpuInitialized)
    return ls->m_VolumeGPU;

  return ls->m_VolumeCPU;
}
开发者ID:junaidnaseer,项目名称:MITK,代码行数:25,代码来源:mitkGPUVolumeMapper3D.cpp


示例2: CloneAccelerant

status_t
CloneAccelerant(void* data)
{
	// Initialize a copy of the accelerant as a clone.  Argument data points to
	// a copy of the data which was returned by GetAccelerantCloneInfo().

	TRACE("Enter CloneAccelerant()\n");

	char path[MAXPATHLEN] = "/dev/";
	strcat(path, (const char*)data);

	gInfo.deviceFileDesc = open(path, B_READ_WRITE);	// open the device
	if (gInfo.deviceFileDesc < 0)
		return errno;

	gInfo.bAccelerantIsClone = true;

	status_t result = InitCommon(gInfo.deviceFileDesc);
	if (result != B_OK) {
		close(gInfo.deviceFileDesc);
		return result;
	}

	result = gInfo.modeListArea = clone_area("ATI cloned display_modes",
		(void**) &gInfo.modeList, B_ANY_ADDRESS, B_READ_AREA,
		gInfo.sharedInfo->modeArea);
	if (result < 0) {
		UninitCommon();
		close(gInfo.deviceFileDesc);
		return result;
	}

	TRACE("Leave CloneAccelerant()\n");
	return B_OK;
}
开发者ID:mmanley,项目名称:Antares,代码行数:35,代码来源:accelerant.cpp


示例3: aui_ImageBase

c3_Radio::c3_Radio(
	AUI_ERRCODE *retval,
	uint32 id,
	sint32 x,
	sint32 y,
	sint32 width,
	sint32 height,
	MBCHAR *pattern,
	ControlActionCallback *ActionFunc,
	void *cookie,
	sint32 state,
	sint32 numStates )
	:
	aui_ImageBase( numStates ),
	aui_TextBase( NULL ),
	aui_Radio( retval, id, x, y, width, height, ActionFunc, cookie, state, numStates ),
	PatternBase(pattern)
{
	Assert( AUI_SUCCESS(*retval) );
	if ( !AUI_SUCCESS(*retval) ) return;

	*retval = InitCommon(k_C3_RADIO_DEFAULT_BEVELWIDTH);
	Assert( AUI_SUCCESS(*retval) );
	if ( !AUI_SUCCESS(*retval) ) return;
}
开发者ID:jleclanche,项目名称:darkdust-ctp2,代码行数:25,代码来源:c3_radio.cpp


示例4: aui_ImageBase

aui_Tab::aui_Tab(
	AUI_ERRCODE *retval,
	uint32 id,
	sint32 x,
	sint32 y,
	sint32 width,
	sint32 height,
	sint32 paneWidth,
	sint32 paneHeight,
	ControlActionCallback *ActionFunc,
	void *cookie,
	sint32 state,
	sint32 numStates )
	:
	aui_ImageBase( numStates ),
	aui_TextBase( NULL ),
	aui_Radio( retval, id, x, y, width, height, ActionFunc, cookie, state, numStates )
{
	Assert( AUI_SUCCESS(*retval) );
	if ( !AUI_SUCCESS(*retval) ) return;

	*retval = InitCommon( paneWidth, paneHeight );
	Assert( AUI_SUCCESS(*retval) );
	if ( !AUI_SUCCESS(*retval) ) return;
}
开发者ID:talentlesshack,项目名称:C2P2,代码行数:25,代码来源:aui_tab.cpp


示例5: DFO_ReadVariableArray

DFO_ReadVariableArray :: DFO_ReadVariableArray() : FuncObjC("Read Variable Array")
{
    SetToNull(varArrayFname);
    varArrayFileFormat   = IO_VariableArray::vffPaCalc;

    InitCommon();
}
开发者ID:jjayne,项目名称:nSIGHTS,代码行数:7,代码来源:DFO_ReadVariableArray.cpp


示例6: DFO_GridExtractXY

DFO_GridExtractXY :: DFO_GridExtractXY() :
    FuncObjC("Extract XY from Grid"), extractValMS("Extract XY")
{
    extractX = true;
    logInterp = false;
    InitCommon();
}
开发者ID:jjayne,项目名称:nSIGHTS,代码行数:7,代码来源:DFO_GridExtractXY.cpp


示例7: InitCommon

void mitk::GPUVolumeMapper3D::GenerateDataForRenderer( mitk::BaseRenderer *renderer )
{
  if(!IsRenderable(renderer))
    return;

  InitCommon();
  InitVtkMapper( renderer );

  mitk::Image *input = const_cast< mitk::Image * >( this->GetInput() );
  vtkImageData *inputData = input->GetVtkImageData( this->GetTimestep() );
  m_UnitSpacingImageFilter->SetInput( inputData );

  LocalStorage *ls = m_LSH.GetLocalStorage(renderer);

// Only with VTK 5.6 or above
#if ((VTK_MAJOR_VERSION > 5) || ((VTK_MAJOR_VERSION==5) && (VTK_MINOR_VERSION>=6) ))
  if(ls->m_rayInitialized)
  {
    GenerateDataRAY(renderer);
  }
  else
#endif

  if(ls->m_gpuInitialized)
  {
    GenerateDataGPU(renderer);
  }
  else
  {
    GenerateDataCPU(renderer);
  }

  // UpdateTransferFunctions
  UpdateTransferFunctions( renderer );
}
开发者ID:fmorency,项目名称:MITK,代码行数:35,代码来源:mitkGPUVolumeMapper3D.cpp


示例8:

aui_Control::aui_Control
(
	AUI_ERRCODE *           retval,
	uint32                  id,
	sint32                  x,
	sint32                  y,
	sint32                  width,
	sint32                  height,
	ControlActionCallback * ActionFunc,
	void *                  cookie
)
:
	aui_ImageBase           ((sint32) 0),
	aui_TextBase            (NULL),
	aui_Region              (retval, id, x, y, width, height),
	aui_SoundBase           ((MBCHAR **) NULL),
	m_stringTable           (NULL),
	m_allocatedTip          (false),
	m_statusText            (NULL),
	m_numberOfLayers        (0),
	m_imagesPerLayer        (0),
	m_imageLayerList        (NULL),
	m_layerRenderFlags      (NULL),
	m_renderFlags           (k_AUI_CONTROL_LAYER_FLAG_ALWAYS),
	m_statusTextCopy        (NULL)
{
	if (AUI_SUCCESS(*retval))
	{
		*retval = InitCommon(ActionFunc, cookie);
	}
}
开发者ID:jleclanche,项目名称:darkdust-ctp2,代码行数:31,代码来源:aui_control.cpp


示例9: __declspec

//Plugin extern function
void __declspec(dllexport) Capture(PLUGINDATA *pd)
{
  pd->dwSupport|=PDS_SUPPORTALL;
  if (pd->dwSupport & PDS_GETSUPPORT)
    return;

  if (!bInitCommon)
    InitCommon(pd);
  else if (!bInitCapture)
    ReadOptions(OF_CAPTURE);

  if (bInitCapture)
  {
    DestroyDock(hWndCaptureDlg, DKT_KEEPAUTOLOAD);

    //Stay in memory and show as non-active
    pd->nUnload=UD_NONUNLOAD_NONACTIVE;
  }
  else
  {
    InitMain();
    InitCapture();

    pfCapture=pd->lpPluginFunction;
    bCaptureDockWaitResize=pd->bOnStart;
    CreateDock(&hWndCaptureDlg, &dkCaptureDlg, !bCaptureDockWaitResize);

    //Stay in memory, and show as active
    pd->nUnload=UD_NONUNLOAD_ACTIVE;
  }
}
开发者ID:embassy,项目名称:AkelPad,代码行数:32,代码来源:Clipboard.c


示例10: FuncObjC

DFO_CreateReal::DFO_CreateReal(const DFO_CreateReal& a) :
    FuncObjC(a),
    rvalMS(a.rvalMS)
{
    LocalCopy(a);
    InitCommon();
}
开发者ID:jjayne,项目名称:nSIGHTS,代码行数:7,代码来源:DFO_CreateReal.cpp


示例11: DFO_BlendColorMap

DFO_BlendColorMap :: DFO_BlendColorMap() :
    FuncObjC("Blend Color Maps"),
    tValMS("Blend T")
{
    tValMS.enteredRealValue = 0.5;
    InitCommon();
}
开发者ID:jjayne,项目名称:nSIGHTS,代码行数:7,代码来源:DFO_BlendColorMap.cpp


示例12: DFO_CreateReal

DFO_CreateReal :: DFO_CreateReal() :
    FuncObjC("Create Real Value"),
    rvalMS("CreateValue")
{
    CopyString(realDesc,  "Output value", descMaxLen);
    InitCommon();
}
开发者ID:jjayne,项目名称:nSIGHTS,代码行数:7,代码来源:DFO_CreateReal.cpp


示例13: DFO_Histogram

DFO_TableHistogram::DFO_TableHistogram(const DFO_TableHistogram& a) : 
    DFO_Histogram(a),
    DSC_TableColSel(a)
{
    LocalCopy(a);
    InitCommon();
}
开发者ID:jjayne,项目名称:nSIGHTS,代码行数:7,代码来源:DFO_TableHistogram.cpp


示例14: aui_ImageBase

aui_MovieButton::aui_MovieButton(
	AUI_ERRCODE *retval,
	uint32 id,
	sint32 x,
	sint32 y,
	sint32 width,
	sint32 height,
	MBCHAR *movie,
	ControlActionCallback *ActionFunc,
	void *cookie )
	:
	aui_ImageBase( (sint32)0 ),
	aui_TextBase( NULL ),
	aui_Button( retval, id, x, y, width, height, ActionFunc, cookie )
{
	m_flags = 0;
	m_fullScreen = false;

	Assert( AUI_SUCCESS(*retval) );
	if ( !AUI_SUCCESS(*retval) ) return;

	*retval = InitCommon( movie );
	Assert( AUI_SUCCESS(*retval) );
	if ( !AUI_SUCCESS(*retval) ) return;
}
开发者ID:jleclanche,项目名称:darkdust-ctp2,代码行数:25,代码来源:aui_moviebutton.cpp


示例15: Assert

AUI_ERRCODE c3_HyperTipWindow::InitCommonLdl( MBCHAR *ldlBlock )
{
    ldl_datablock * block = aui_Ldl::FindDataBlock(ldlBlock);
	Assert( block != NULL );
	if ( !block ) return AUI_ERRCODE_LDLFINDDATABLOCKFAILED;

	AUI_ERRCODE errcode = InitCommon();
	Assert( AUI_SUCCESS(errcode) );
	if ( !AUI_SUCCESS(errcode) ) return errcode;

	MBCHAR tipBlock[ k_AUI_LDL_MAXBLOCK + 1 ];
	sprintf( tipBlock, "%s.%s", ldlBlock, k_C3_HYPERTIPWINDOW_LDL_TIP );

	if (aui_Ldl::GetLdl()->FindDataBlock( tipBlock ) )
	{
		m_hyperTip = new aui_HyperTextBox(
			&errcode,
			aui_UniqueId(),
			tipBlock );
		Assert( AUI_NEWOK(m_hyperTip,errcode) );
		if ( !AUI_NEWOK(m_hyperTip,errcode) ) return errcode;

		m_hyperTip->SetBlindness( TRUE );

		m_hyperTip->TextReloadFont();

		aui_Ldl::Remove( m_hyperTip );
		m_allocatedHyperTip = TRUE;
		AddChild( m_hyperTip );
		m_hyperTip->Move( 0, 0 );
		m_hyperTip->Resize( m_width-5, m_height-10 );
	}

	return AUI_ERRCODE_OK;
}
开发者ID:jleclanche,项目名称:darkdust-ctp2,代码行数:35,代码来源:c3_hypertipwindow.cpp


示例16: FuncObjC

DFO_TableColumnSort::DFO_TableColumnSort(const DFO_TableColumnSort& a) :
    FuncObjC(a),
    DSC_TableColSel(a)
{
    LocalCopy(a);
    InitCommon();
}
开发者ID:jjayne,项目名称:nSIGHTS,代码行数:7,代码来源:DFO_TableColumnSort.cpp


示例17: dGeomTriMeshDataCreate

    void cPhysicsObject::CreateTrimesh(cWorld* pWorld, const std::vector<spitfire::math::cVec3>& coords, const std::vector<unsigned int>& indices, const physvec_t& pos, const physvec_t& rot)
    {
      vVertices = coords;
      vIndices = indices;

      bBody = false;
      bDynamic = false;

      // Trimeshes are static for the moment
      v[0] = 0.0f;
      v[1] = 0.0f;
      v[2] = 0.0f;

      dTriMeshDataID trimeshData = dGeomTriMeshDataCreate();

      const int VertexCount = vVertices.size();
      const int IndexCount = vIndices.size();

      dGeomTriMeshDataBuildSingle(
        trimeshData,
        (const void*)vVertices.data(), sizeof(spitfire::math::cVec3), (int)VertexCount, // Faces
        (const void*)vIndices.data(), (int)IndexCount, 3 * sizeof(uint32_t) // Indices
      );

      geom = dCreateTriMesh(pWorld->GetSpaceStatic(), trimeshData, NULL , NULL , NULL);

      InitCommon(pWorld, pos, rot);
    }
开发者ID:pilkch,项目名称:library,代码行数:28,代码来源:cPhysicsObject.cpp


示例18: aui_ImageBase

ctp2_HyperTextBox::ctp2_HyperTextBox(
	AUI_ERRCODE *retval,
	uint32 id,
	sint32 x,
	sint32 y,
	sint32 width,
	sint32 height,
	MBCHAR *pattern,
	ControlActionCallback *ActionFunc,
	void *cookie )
	:
	aui_ImageBase( (sint32)0 ),
	aui_TextBase( NULL ),
	aui_HyperTextBox(retval, id, x,y, width, height, ActionFunc, cookie),
	PatternBase(pattern)
{
	Assert( AUI_SUCCESS(*retval) );
	if ( !AUI_SUCCESS(*retval) ) return;

	*retval = InitCommon();
	Assert( AUI_SUCCESS(*retval) );
	if ( !AUI_SUCCESS(*retval) ) return;

	*retval = CreateRanger( NULL );
	Assert( AUI_SUCCESS(*retval) );
}
开发者ID:talentlesshack,项目名称:C2P2,代码行数:26,代码来源:ctp2_hypertextbox.cpp


示例19: FuncObjC

DFO_TableCalibrationStatistics::DFO_TableCalibrationStatistics(const DFO_TableCalibrationStatistics& a) :
    FuncObjC(a),
    DSC_TableColSel(a)
{
    LocalCopy(a);
    InitCommon();
}
开发者ID:jjayne,项目名称:nSIGHTS,代码行数:7,代码来源:DFO_TableCalibrationStatistics.cpp


示例20:

aui_Shell::aui_Shell(
	AUI_ERRCODE *retval )
{
	*retval = InitCommon();
	Assert( AUI_SUCCESS(*retval) );
	if ( !AUI_SUCCESS(*retval) ) return;
}
开发者ID:jleclanche,项目名称:darkdust-ctp2,代码行数:7,代码来源:aui_shell.cpp



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C++ InitCommonControls函数代码示例发布时间:2022-05-30
下一篇:
C++ InitColors函数代码示例发布时间: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