本文整理汇总了C++中Filename::Get方法的典型用法代码示例。如果您正苦于以下问题:C++ Filename::Get方法的具体用法?C++ Filename::Get怎么用?C++ Filename::Get使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Filename
的用法示例。
在下文中一共展示了Filename::Get方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: CalcPreview
void BitmapPreview::CalcPreview(void)
{
if (!col) return;
//GePrint("DRAW");
LONG x,y;
UWORD r,g,b;
LONG bw=col->GetBw();
LONG bh=col->GetBh();
if (!bh || !bw) return;
//if (!doc || !chan || !enabled){//Error
if (!chan || !enabled){//Error
if (doc){
//??????????????????????????
//ICON WORK ???
BaseObject *op = NULL;
IconData idat;
op = ob;
if (!op) op = doc->GetActiveObject();if (!op) return;
op->GetIcon(&idat);//if (!idat) return;
if (idat.bmp){
if (!idat.h || !idat.w) return;
LONG ah = (bh/2-idat.h/2)%bh;
LONG aw = (bw/2-idat.w/2)%bw;
col->Clear(0,0,0);
for (y=0; y<idat.h; y++){
for (x=0; x<idat.w; x++){
idat.bmp->GetPixel( idat.x + (x % idat.w),
idat.y + (y % idat.h),
&r, &g, &b);
col->SetPixel(x+aw,y+ah,LONG(r),LONG(g),LONG(b));
}
}
}
Redraw();
return;
//??????????????????????????
}else{
col->Clear(0,0,0);//?????
Redraw();
return;
}
}
Real bwi=1.0/Real(bw),bhi=1.0/Real(bh);
PLUGIN_DATA *plug = NULL;
plug = chan->GetPluginData();if (!plug) return;
//ChannelData cd;
Vector v;
LONG vr,vg,vb;
//InitRenderStruct
InitRenderStruct irs;
LONG fps = doc->GetFps();
irs.fps = fps;
BaseTime BTtime = doc->GetTime();
irs.time = BTtime;
irs.doc = doc;
Filename dpath = doc->GetPath();
irs.docpath = dpath.Get();
VolumeData *vd=NULL;//STANDATD
Vector p=Vector(0.0,0.0,0.0); // texture position in UVW coordinates (x(1 or 0) und y(1 or 0))
Vector d=Vector(0.5*bwi,0.5*bhi,0.0); // MIP sample radius in UVW coordinates
Vector n=Vector(0.0,1.0,0.0); // surface normal
Real t=BTtime.Get();//WICHTIG
chan->InitTexture(&irs);
for (y=0; y<bh; y++){
for (x=0; x<bw; x++){
p = Vector(x*bwi,y*bhi,0.0);
v=CutColor(chan->Sample(vd,&p,&d,&n,t,0,0.0,1.0));
//FILTER ???
/*
switch (filter){
case 0: v = (v.x+v.y+v.z)*THIRD;//Alle Gray
break;
case 1: v = (v.x);//Red
break;
case 2: v = (v.y);//Gren
break;
case 3: v =(v.z);//Blu
break;
case 4: v = RGBToHSV(v).x;//H
break;
case 5: v = RGBToHSV(v).y;//S
break;
case 6: v = RGBToHSV(v).z;//V
break;
}
*/
//.........这里部分代码省略.........