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


C++ ImgFile_Ptr::CreateUpdateData方法代码示例

本文整理汇总了C++中ImgFile_Ptr::CreateUpdateData方法的典型用法代码示例。如果您正苦于以下问题:C++ ImgFile_Ptr::CreateUpdateData方法的具体用法?C++ ImgFile_Ptr::CreateUpdateData怎么用?C++ ImgFile_Ptr::CreateUpdateData使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ImgFile_Ptr的用法示例。


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

示例1: Undo

void AddCopyLayerHandle::Undo(ImgFile_weakPtr wpFile){
	ImgFile_Ptr pFile = wpFile.lock();

	m_addLayer_lock = m_addLayer.lock();
	pFile->RemoveLayer(m_addLayer_lock);
	m_is_added_layer = false;

	LPUPDATE_DATA data=pFile->CreateUpdateData();
	data->isAll = true;
	pFile->PushUpdateData(data);
}
开发者ID:,项目名称:,代码行数:11,代码来源:

示例2: Redo

void AddCopyLayerHandle::Redo(ImgFile_weakPtr wpFile){
	ImgFile_Ptr pFile = wpFile.lock();

	pFile->AddLayer(m_addLayer.lock());
	m_is_added_layer = true;
	m_addLayer_lock = NULL;

	LPUPDATE_DATA data = pFile->CreateUpdateData();
	data->isAll = true;
	pFile->PushUpdateData(data);
}
开发者ID:,项目名称:,代码行数:11,代码来源:

示例3: OnSelect

void IImgSelecter::OnSelect()
{
	ImgFile_Ptr file = m_pImgEdit->GetActiveFile();
	if(file){
		file->SetMaskDrawType( MASK_SOLID_DRAW );

		LPUPDATE_DATA data = file->CreateUpdateData();
		data->isAll = false;
		file->GetMaskRect(&(data->rect));
		file->PushUpdateData(data);
	}
}
开发者ID:,项目名称:,代码行数:12,代码来源:

示例4: OnNeutral

void IMakeRectImgSelecter::OnNeutral()
{
	IMakeRect::OnNeutral();

	ImgFile_Ptr file = m_pImgEdit->GetActiveFile();
	if(file){
		file->SetMaskDrawType( MASK_DOT_LINE_DRAW );

		LPUPDATE_DATA data = file->CreateUpdateData();
		data->isAll = false;
		file->GetMaskRect(&(data->rect));
		file->PushUpdateData(data);
	}
}
开发者ID:,项目名称:,代码行数:14,代码来源:

示例5: OnMouseLDrag

void ViewRot::OnMouseLDrag(UINT nFlags, const LPIE_INPUT_DATA lpd)
{
	double rot = GetRot(&startPt, lpd);

	ImgFile_Ptr f = m_pImgEdit->GetActiveFile();
	if(f){
		f->SetViewRot(rot + start_rot);

		//表示画像に適用
		LPUPDATE_DATA data = f->CreateUpdateData();
		data->isAll = true;
		f->PushUpdateData(data);
	}
}
开发者ID:,项目名称:,代码行数:14,代码来源:

示例6: Run

BOOL ViewFlipV::Run(ImgEdit* pEdit, void* pvoid)
{
	ImgFile_Ptr f = pEdit->GetActiveFile();
	if(!f) return FALSE;

	if( f->IsViewFlipV() ){
		f->SetViewFlipV( false );
	}
	else{
		f->SetViewFlipV( true );
	}

	//update display
	LPUPDATE_DATA data = f->CreateUpdateData();
	data->isAll = true;
	f->PushUpdateData(data);

	return FALSE;
}
开发者ID:fughz,项目名称:frayer,代码行数:19,代码来源:ViewFlipV.cpp

示例7: Do

bool AddCopyLayerHandle::Do(ImgFile_weakPtr wpFile)
{
	ImgFile_Ptr pFile = wpFile.lock();

	m_addLayer = m_addLayer_lock = CreateIEImgLayer( pFile );

	IImgLayer_weakPtr wlayer = pFile->GetSelectLayer();
	if (wlayer.expired()) {
		OutputError::PushLog(LOG_LEVEL::_ERROR, "AddCopyLayerHandle::Do() select layer is expired");
		return false;
	}

	IImgLayer_Ptr layer = wlayer.lock();
	if(layer->GetLayerType() != IE_LAYER_TYPE::NORMAL_LAYER){
		OutputError::PushLog(LOG_LEVEL::_ERROR, "AddCopyLayerHandle::Do() select layer is not normal layer");
		return false;
	}

	if(m_copyLayer.lock() == NULL){
		m_copyLayer = std::dynamic_pointer_cast<ImgLayer>(layer);
	}

	const_ImgLayer_Ptr copy_layer = m_copyLayer.lock();

	copy_layer->CopyImgLayer( m_addLayer_lock );
	
	char layer_name[MAX_IMG_LAYER_NAME];
	copy_layer->GetName(layer_name);
	sprintf(layer_name,  "%s�̃R�s�[", layer_name);
	m_addLayer_lock->SetName(layer_name);
	m_addLayer_lock->SetLayerSynthFourCC( LayerSynthesizerMG::GetDefaultLayerSynthFourCC() );

	pFile->AddLayer(m_addLayer_lock);
	m_is_added_layer = true;
	m_addLayer_lock = NULL;

	LPUPDATE_DATA data = pFile->CreateUpdateData();
	data->isAll = true;
	pFile->PushUpdateData(data);
	return true;
}
开发者ID:,项目名称:,代码行数:41,代码来源:


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