本文整理汇总了C++中DBbox::visible方法的典型用法代码示例。如果您正苦于以下问题:C++ DBbox::visible方法的具体用法?C++ DBbox::visible怎么用?C++ DBbox::visible使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DBbox
的用法示例。
在下文中一共展示了DBbox::visible方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: DBbox
void trend::TrendBase::grcwire (int4b* pdata, unsigned psize, WireWidth width)
{
// first check whether to draw only the center line
DBbox wsquare = DBbox(TP(0,0),TP(width,width));
bool center_line_only = !wsquare.visible(topCTM() * scrCTM(), visualLimit());
_grcLayer->wire(pdata, psize, width, center_line_only);
}
示例2: if
/*! A temporary Draw (during move/copy operations) of the container contents
on the screen using the virtual quadTree::tmp_draw() method of the
parent object. */
void laydata::tdtlayer::motion_draw(const layprop::DrawProperties& drawprop,
ctmqueue& transtack) const {
// check the entire layer for clipping...
DBbox clip = drawprop.clipRegion();
if (empty()) return;
DBbox areal = overlap().overlap(transtack.front());
if ( clip.cliparea(areal) == 0 ) return;
else if (!areal.visible(drawprop.ScrCTM())) return;
quadTree::motion_draw(drawprop, transtack);
}
示例3:
short laydata::quadTree::clip_type(tenderer::TopRend& rend) const
{
if (empty()) return 0;
// check the entire holder for clipping...
DBbox clip = rend.clipRegion();
DBbox areal = _overlap.overlap(rend.topCTM());
float clip_area = clip.cliparea(areal);
if ( ( 0.0 == clip_area ) || (!areal.visible(rend.ScrCTM())) ) return 0;
if (0.0 < clip_area) return 1;
else return -1;
}
示例4: if
bool laydata::DrawIterator<DataT>::secureNonEmptyDown()
{
assert(_drawprop);
DBbox clip = _drawprop->clipRegion();
DBbox areal = Iterator<DataT>::_cQuad->_overlap.overlap(_ctm);
if (0ll == clip.cliparea(areal) ) return false;
else if (!areal.visible(_drawprop->scrCtm(), _drawprop->visualLimit())) return false;
while (0 == Iterator<DataT>::_cQuad->_props._numObjects)
{
return this->nextSubQuad(0,Iterator<DataT>::_cQuad->_props.numSubQuads());
}
Iterator<DataT>::_cData = 0;
return true;
}