当前位置: 首页>>代码示例>>C++>>正文


C++ InitCommon函数代码示例

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


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


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